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

[QUESTION] Assistance diagnosing problem #90

Open
bcourtney5965 opened this issue Dec 11, 2020 · 0 comments
Open

[QUESTION] Assistance diagnosing problem #90

bcourtney5965 opened this issue Dec 11, 2020 · 0 comments

Comments

@bcourtney5965
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant