npm version error
Hi guys,
An old project running core 3.1 is using 11.15.0 of npm, I have previously a installation of 18.12.0.
I have tried to change this with nvm to match the version of the build:
So it is failing when I am trying to build and saying that I am still using 18.12.0.
Best regards
20 Replies
Worth to mention is that I am new with npm/nvm, mostly been sitting on the integrations end further down.
so it could be something different I am missing.
Now using node v11.15.0 (npm v6.7.0)
don't you need 11.15.0 of npm
and not node?Yes, it might be the case. Trying now to figure out how to install npm 11.15.0
I tried to do:
$ npm install 11.15.0
but I got:
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/11.15.0 - Not found
npm ERR! 404
npm ERR! 404 '11.15.0@latest' is not in the npm registry.
npm ERR! 404 Your package name is not valid, because
npm ERR! 404 1. name can only contain URL-friendly characters
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
There seem to be a variant:
https://www.npmjs.com/package/node/v/11.15.0
npm
node
node. Latest version: 19.1.0, last published: 13 days ago. Start using node in your project by running
npm i node
. There are 528 other projects in the npm registry using node.But that is a variant of Node, not Npm
And yes, 6.7.0 seem to be my installed version of npm:
$ npm -v
6.7.0
this is confusing tho.
it seem to be correct? Node v11.15.0 on npm v6.7.0
node is the server-side js runtime, npm is their package manager
yeah
they come together but they are two different things
Not sure what I have changed but the build can now build.
npm install npm 11.15.0
on
$ npm -v
6.7.0
you're trying to install just the package named 11.15.0
I see
$ node -v
v11.15.0
When I am now trying to do a
npm start
I am getting errors with
There might be a problem with the project dependency tree.
It is likely not a bug in Create React App, but something you need to fix locally.
The react-scripts package provided by Create React App requires a dependency:
"eslint": "^6.6.0"
I guess I do a npm i [email protected]
??
did you do npm install?
you need to do npm install to initialize the project
ok
Great
Now I have a instance of the build running locally
Thank you Anton :)
What is best pracc to do with this post, Close or Unfollow?
Maybe somebody else has similar issue in future
i think it stays reachable through search even if you close it
Yes, just closed and could still find through search.
Thanks again!
np