npm 报错This is probably not a problem with npm. There is likely additional logging output above.
1
可能是版本的问题
重新 npm install
然后 npm i -D webpack-dev-server@3.0.0
再 npm run dev
重新安装一次,如果还是不可以的话,在把之前装的都清空
rm -rf node_modules
rm package-lock.json
npm cache clear --force
npm install
2
然后报错说是找不到node-sass,那么想着install一个node-sass就行了。但是发现结果不是!!!输入命令npm install node-sass --save-dev
所以用npm install -g cnpm --registry=https://registry.npm.taobao.org ,从淘宝镜像那下载,然后cnpm下载成功。
最后输入cnpm install node-sass --save。npm run dev终于能跑起来了!!!