git wiki or document
npm home lodash
npm repo lodash //goto github
npm config list -l
see npm config
npm init -fy
create package.json
npm set
file in ~/.npmrc or ./npmrc
npm set init-author-name 'dan fox'
npm set init-author-email '[email protected]'
npm set init-license 'MIT'
npm info express
1. see all property
npm info express
2.to see some property
npm info express description version
npm search
npm list
1. global
npm list -g
2. current project
npm list
3. see single module
npm list lodash
npm install
1. npm install <package name>
2. npm install git:github.com/package/path.git
3.npm install -f <name or url>
install different version
1.npm install sax@latest
npm install [email protected]
npm install sax@">=0.1.0 <0.2.0"
必选权限问题,可以更换全局目录
但是如果是个人开发的话,好像改下权限比较简单
npm set