To list all npm packages installed.
~$ npm ls
ubuntu@1.0.0 /home/ubuntu
`-- underscore@1.9.1
To remove locally installed npm package
~$ npm rm underscore --save
npm WARN ubuntu@1.0.0 No description
npm WARN ubuntu@1.0.0 No repository field.
removed 1 package in 1.363s
found 0 vulnerabilities
Listing the packages installed using npm.
~$ npm ls
ubuntu@1.0.0 /home/ubuntu
`-- (empty)
Installing the removed package locally again.
~$ npm install underscore --save
npm WARN ubuntu@1.0.0 No description
npm WARN ubuntu@1.0.0 No repository field.
+ underscore@1.9.1
added 1 package from 1 contributor and audited 1 package in 0.697s
found 0 vulnerabilities
Listing the packages installed using npm.
~$ npm ls
ubuntu@1.0.0 /home/ubuntu
`-- underscore@1.9.1
~$
No comments:
Post a Comment