Acquaintance npm

npm install

npm install -g;

-g represents the global installed

npm adduser Create an account
command line to create the terminal without adding directly binding machine, you need to manually add the account information at the official website, then created;

Third-party modules:

npm install + module name (download third-party modules to local)

Custom Module Release to npm

npm init (initialization)
(containing: package.son; index.js; README.md (optional))
npm publish (upload issue)

npm unpublish + module name @ version number (delete release)

sudo -g npm hexo (globally download and install hero)

Original: Big Box  acquaintance npm


Guess you like

Origin www.cnblogs.com/sanxiandoupi/p/11651967.html