找不到模块“node-sass"中的错误 [英] ERROR in Cannot find module 'node-sass'
本文介绍了找不到模块“node-sass"中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
配置:macOS High Sierra,版本 10.13.2,节点:v8.1.2 npm:5.0.3当我在 angularjs 项目中运行 npm start 时,出现此错误:
Config: macOS High Sierra, version 10.13.2, node:v8.1.2 npm:5.0.3 When I run npm start in my angularjs project I get this error:
ERROR in Cannot find module 'node-sass'
在此之后我运行:
npm i node-sass
现在我收到此错误:
gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
为什么 npm 不安装 node-sass?如何安装 node-sass?
Why won't npm install node-sass? How can I install node-sass?
推荐答案
解决方案如下:
sudo npm install --save-dev --unsafe-perm node-sass
享受吧!
这篇关于找不到模块“node-sass"中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文