C
C#2y ago
froxerbbq

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
froxerbbq
froxerbbqOP2y ago
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.
Anton
Anton2y ago
Now using node v11.15.0 (npm v6.7.0) don't you need 11.15.0 of npm and not node?
froxerbbq
froxerbbqOP2y ago
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.
froxerbbq
froxerbbqOP2y ago
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.
froxerbbq
froxerbbqOP2y ago
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
froxerbbq
froxerbbqOP2y ago
froxerbbq
froxerbbqOP2y ago
this is confusing tho. it seem to be correct? Node v11.15.0 on npm v6.7.0
Anton
Anton2y ago
node is the server-side js runtime, npm is their package manager
froxerbbq
froxerbbqOP2y ago
yeah
Anton
Anton2y ago
they come together but they are two different things
froxerbbq
froxerbbqOP2y ago
Not sure what I have changed but the build can now build.
Anton
Anton2y ago
npm install npm 11.15.0
froxerbbq
froxerbbqOP2y ago
on $ npm -v 6.7.0
Anton
Anton2y ago
you're trying to install just the package named 11.15.0
froxerbbq
froxerbbqOP2y ago
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] ??
Anton
Anton2y ago
did you do npm install? you need to do npm install to initialize the project
froxerbbq
froxerbbqOP2y ago
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
Anton
Anton2y ago
i think it stays reachable through search even if you close it
froxerbbq
froxerbbqOP2y ago
Yes, just closed and could still find through search. Thanks again!
Anton
Anton2y ago
np
Want results from more Discord servers?
Add your server