配置:macOS High Sierra,版本10.13.2,节点:v8.1.2 npm:5.0.3在我的angularjs项目中运行npm start时,出现以下错误:
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?
npm install --save-dev node-sass