npm install报错问题解决以及人人开源前端报错问题解决
npm install常见报错解决方法
·
1,清除npm缓存
npm cache clean --force
2,配置python路径(路径就填写安装路径)
npm set config python D:\Cache\python
3,配置npm淘宝镜像
npm install -g cnpm --registry=https://registry.npm.taobao.org
4,镜像下载依赖
cnpm install
5,卸载原有的node_sass版本(如果就确定是node_sass版本不兼容的问题)
npm uninstall sass-loader
6,在下载node_sass依赖
cnpm install node-sass
7,最后启动
(1)renren-fast项目启动方法
npm run dev
(2)renren-ui项目启动方法
npm run serve
更多推荐
已为社区贡献1条内容
所有评论(0)