Skip to content

Instantly share code, notes, and snippets.

@cxfksword
Last active January 5, 2017 07:10
Show Gist options
  • Save cxfksword/e0a05469f9dad670436d49aabb988b60 to your computer and use it in GitHub Desktop.
Save cxfksword/e0a05469f9dad670436d49aabb988b60 to your computer and use it in GitHub Desktop.
npm在windows下避免目录多层嵌套的方法

1、安装npm 3以上版本,或nodejs 6以上

2、配置镜像使用淘宝

npm set registry https://registry.npm.taobao.org

3、直接使用npm install

删除多层嵌套目录的方法

npm install rimraf -g
rimraf node_modules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment