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

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐