NPM stands for Node Package Manager and it is the package manager for the Node JavaScript platform. It put modules in place so that node can find t...
For further actions, you may consider blocking this person and/or reporting abuse
What about
npm audit
andnpm audit fix
for security fixes?I agree with you Robin that security issues and remediation should be an important part. But I would 10/10 times use a tool that continuously checks that for you. Doing it manually is prone to fail at some time.
Absolutely!
Yes, they can be added here. But i just wanted to keep it brief so that new developers can get a glimpse of how to start working with npm
Might be a good shout to add it (npm audit) to your ci pipeline on push to repo, assuming you are using a ci system.
I'd definitely add
npm outdated
andnpm update
to this list for package maintenance!Me too.. But i wanted to keep it short till 10 so that it doesn't get overwhelming for beginners
Good list, however npm does not actually stand for "Node Package Manager".
twitter.com/npmjs/status/105690425...
this person gets it. or rather, how to read the official docs
What is this trickery? 😁
npm i - installs the packages in package.json but rewrites the lock file, which because of both the ecosystem and the default behaviour of npm i -s, means that different people working on the same code base can have very different packages installed, which can lead to problems. npm ci is the better way of installing packages from package.json
Thanks for this.... saved
What about
npm list -g --depth=0
for to list packages installed globally with npm?Initially I read 10 npm Commandments.. ;)
I think it should have
npm run
andnpm run start
for listing run commands and executing command?These are basic commands, by the title it sounded like commands outside the basics. You automatically get to know these commands by using npm.
When I say must know, it is about basics.
Thanks for this tips, ia there more nom commands for fixing broken depedencies?
Yes. You can type your issue on their official npm site and you will get info about the commands which can fix your issue.
Awesome tidbit of info!
Thanks for the list.....