1. 官方网站
https://docs.npmjs.com/
2. 显示Global Module安装过什么
p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo }
span.s1 { }
npm list --depth=0 -g
3. Upgrade Nodejs on Mac
sudo npm cache clean -f
sudo npm install -g n
sudo n stable(千万别断网)
http://eddychang.me/blog/javascript/58-nodes-update.html
4. Upgrade NPM on Mac(一定要sudo)
sudo npm install -g npm
5. Default
p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo }
span.s1 { }
npm init --yes (不用设置,输入后直接出现package.json)
npm set init-author-name "Your Name"
npm set init-license "MIT"
npm delete init-author-name