解决windows下node-sass报错的问题
2017-04-11 11:38
113 查看
报错如下
解决办法:
主要是windows平台缺少编译环境,
1、先运行: npm install -g node-gyp
2、然后运行:运行 npm install –global –production windows-build-tools 可以自动安装跨平台的编译器:gym
另外看到一篇好的文章,如果还没有解决,看看这个https://segmentfault.com/a/1190000005921721
另外一篇https://github.com/lmk123/blog/issues/28
npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\ node_modules\\npm\\bin\\npm-cli.js" "install" npm ERR! node v6.9.1 npm ERR! npm v3.10.8 npm ERR! code ELIFECYCLE npm ERR! node-sass@4.5.3 postinstall: `node scripts/build.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-sass@4.5.3 postinstall script 'node scripts/build.js '. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the node-sass package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node scripts/build.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs node-sass npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls node-sass npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request:
解决办法:
主要是windows平台缺少编译环境,
1、先运行: npm install -g node-gyp
2、然后运行:运行 npm install –global –production windows-build-tools 可以自动安装跨平台的编译器:gym
另外看到一篇好的文章,如果还没有解决,看看这个https://segmentfault.com/a/1190000005921721
另外一篇https://github.com/lmk123/blog/issues/28
相关文章推荐
- 关于 windows 下 node_modules\node-sass\vendor 的报错解决方法
- 解决安装windows7或windows 8过程中缺少CD/DVD驱动的报错问题
- 解决node-sass安装失败的问题
- 安装node-sass遇到的各种各样的问题及解决
- 解决最近windows版本Node.js中npm出现的“Error: ENOENT, stat 'C:\Users\UserName\AppData\Roaming\npm”的问题
- node-sass问题解决 An error occurred while running npm install
- Node安装node-sass总是下载超时问题解决
- windows下nvm安装node之后npm命令找不到问题解决办法
- 解决windows 下 node-webkit 不能播放声音的问题
- Crosswalk Cordova windows下编译出现:bin\node_modules\q\q.js:126 throw e问题解决方法
- ionic2 解决无法安装node-sass的问题
- node-sass安装出错问题解决
- 完美解决Cannot download "https://github.com/sass/node-sass/releases/download/binding.nod的问题
- 因node-sass版本问题报错信息以及简单的解决的方式
- node-sass问题解决 An error occurred while running npm install
- 解决node-sass安装不了的问题
- 使用nvmw解决windows下多版本node共存的问题
- 解决 $ npm install node-sass --save-dev 失败的问题
- 解决 $ npm install node-sass --save-dev 失败的问题
- Windows下安装RabbitMQ报错Error: unable to connect to node rabbit@xxx: nodedown的解决方式