Help request: diagnosing issue #20105
Unanswered
bcourtney5965
asked this question in
Help
Replies: 1 comment
|
If you run mike@MacBook-Pro ~ % nvm --version
0.35.3
mike@MacBook-Pro ~ % nvm install --lts
Installing latest LTS version.
Downloading and installing node v12.18.0...
Downloading https://nodejs.org/dist/v12.18.0/node-v12.18.0-darwin-x64.tar.gz...
############################################################################################################################## 100.0%
Computing checksum with shasum -a 256
Checksums matched!
Now using node v12.18.0 (npm v6.14.4)
Creating default alias: default -> lts/* (-> v12.18.0)
mike@MacBook-Pro ~ % node --version
v12.18.0You can then install Next via npm from there. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I ran into several issues. Everytime I tried to fix one it seemed to only make it worse. I wanted to 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. I'm trying to figure out what I did wrong here... Any advice is much appreciated.
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
rm /usr/local/share/man/man1/npm-access.1
npm install -g npm@latest
but it says: command not found: npm
which npm also shows: command not found
node version: v12.16.3
npm version: was 6.14.4
npm/cli#1185
I wanted to install a NextJS starter app. Now I don't have access to the npm command. Like I mentioned at the top I'm thinking about uninstalling node, npm, and nvm and reinstalling with brew. Any advice?
All reactions