- 先下载安装淘宝镜像,运行命令
npm install -g cnpm --registry=https://registry.npm.taobao.org
- 然后使用命令:
cnpm install node-sass --save
安装node-sass - 安装完毕后再启动就没有这个错误了
解决运行Vue项目出现Module build failed: Error: Cannot find module 'node-sass'错误
最新推荐文章于 2024-05-27 15:09:00 发布
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install node-sass --save
安装node-sass