找不到模块"node-sass"中的错误 [英] ERROR in Cannot find module 'node-sass'

查看:346
本文介绍了找不到模块"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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆