Skip to content
This repository was archived by the owner on Apr 7, 2021. It is now read-only.
This repository was archived by the owner on Apr 7, 2021. It is now read-only.

[QUESTION] Assistance diagnosing problem #90

@bcourtney5965

Description

@bcourtney5965

What / Why

1.) I was trying to install a nextJS starter app so I ran this command unsuccessfully a few times:
npx create-next-app next-app-test

upon reading the error logs they said
7 silly fetchPackageMetaData error for create-next-app@latest Response timeout while trying to fetch https://registry.npmjs.org/create-next-app (over 30000ms)

11 verbose stack FetchError: Response timeout while trying to fetch https://registry.npmjs.org/create-next-app (over 30000ms)

Googling the error showed this: npm/cli#1185

I realized I was using this "bad" npm version: 6.14.4

2.) So I ran npm install -g npm@latest

It said I was missing write access to a ton of things:

3.) So I ran sudo npm install -g npm@latest and it errored saying that a file already existed:

/usr/local/share/man/man1/npm-access.1

and to remove it OR do it unsafely. So I removed it

  1. rm /usr/local/share/man/man1/npm-access.1

  2. npm install -g npm@latest
    but it says: command not found: npm

which npm also shows: command not found

All I wanted to do was install a NextJS starter app. Now I don't have access to the npm command. I'm thinking about uninstalling node, npm, and nvm and reinstalling with brew. Any thoughts?

Where

was working with NextJS's create-next-app

Who

Just my personal user

References

node version: v12.16.3
npm version: was 6.14.4
npm/cli#1185

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions