-
npm install//Global Node module installation. -
npm install <package-name>//Install specific package and adds it to package.json file which holds file dependencies. -
npm update//Update all packages for newer version. -
npm update <package-name>//Specific package updation. -
npm install <package-name>@<version>//Specific package updation with specific version. -
npm run <task-name>//To run a task likenpm run (watch/dev/rod). -
npm install -g//Tell global installation folder. -
node_modules/.bin///Executable dependencies require to be in this folder. -
npm list//To list all installed packages with versions in hierarchical order. -
npm view cowsay versions//To check out versions available of a package. -
npm install cowsay@1.2.0//To instll older version or newer version of a package. - Check out https://nodejs.dev/en/learn/update-all-the-nodejs-dependencies-to-their-latest-version/, for more version update in node.
-
npm uninstall <package-name>//To uninstall a package.
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)