Sil*_*lla 6 sass npm gulp node-sass
我试图在视觉工作室代码中从终端窗口安装gulp-sass.
其他依赖项,如autoprefixer,concat等安装没有问题,但gulp-sass一直给我这个错误.
> node-sass@4.9.0 install /usr/local/lib/node_modules/node-sass
> node scripts/install.js
sh: node: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! node-sass@4.9.0 install: `node scripts/install.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the node-sass@4.9.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Run Code Online (Sandbox Code Playgroud)
我在Mac上运行VSC.
有什么帮助吗?我对这一切都是全新的,没有编程背景,只是前端开发.
非常感谢
小智 -1
我得到和你一样的解决方案。我尝试在互联网上搜索,我在这里找到了http://relaxitblog.com/?p=611 然后我安装了: sudo npm install gulp-sass 之后: npmauditfix success
归档时间: |
|
查看次数: |
2077 次 |
最近记录: |