配置信息:macOS High Sierra,版本号10.13.2,node版本为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
。 - Ashok R