node npm

由于时间比较赶,随手写下来,以后在修改!

npm在国内速度不好,用cnpm代替:npm install -g cnpm --registry=https://registry.npm.taobao.org

node版本管理用npm install -g n,但windows系统不支持,此时用nvmw: git clone git://github.com/hakobera/nvmw.git,然后把目录添加到环境变量,就可以用nvmw命令管理node版本(nvmw不好用。可以用gnvm代替https://github.com/kenshin/gnvm)

刚入坑,强势崛起ing!
原文地址:https://www.cnblogs.com/victfx/p/5444890.html