angular npm install问题

来源:互联网 发布:创维酷开内置软件卸载 编辑:程序博客网 时间:2024/05/21 18:33

1、执行以下命令

ng set -g packageManager=cnpmng get -g

2、npm install 安装过程卡住不动

npm config set registry http://registry.cnpmjs.org

或修改npmrc文件 增加一条 registry=http://registry.cnpmjs.org

3、启动时cannot find module ‘webpack/lib/node/NodeTemplatePlugin’

是因为全局安装webpack导致的,本项目中安装,cnpm install webpack
此步骤参考:http://blog.csdn.net/u013240543/article/details/51792261