首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装node-sass依赖项时出错

安装node-sass依赖项时出错
EN

Stack Overflow用户
提问于 2017-02-22 21:00:21
回答 1查看 1.7K关注 0票数 1

我正在尝试npm安装一个具有以下依赖项的package.json:

代码语言:javascript
复制
  "devDependencies": {
    "browser-sync": "^2.8.2",
    "del": "^1.2.0",
    "gulp": "^3.9.0",
    "gulp-autoprefixer": "^2.3.1",
    "gulp-babel": "^5.2.0",
    "gulp-concat": "^2.6.0",
    "gulp-eslint": "^1.0.0",
    "gulp-filesize": "0.0.6",
    "gulp-header": "^1.2.2",
    "gulp-imagemin": "^2.3.0",
    "gulp-jshint": "^1.11.2",
    "gulp-livereload": "^3.8.0",
    "gulp-minify-css": "^1.2.0",
    "gulp-newer": "^0.5.1",
    "gulp-notify": "^2.2.0",
    "gulp-plumber": "^1.0.1",
    "gulp-rename": "^1.2.2",
    "gulp-sass": "^2.0.4",
    "gulp-sourcemaps": "^1.5.2",
    "gulp-svgmin": "^1.2.0",
    "gulp-svgstore": "^5.0.4",
    "gulp-uglify": "^1.2.0",
    "imagemin-pngquant": "^4.1.2"
  },
  "dependencies": {
    "node-sass": "^3.2.0"
  }

但是使用node-sass包会失败。输出的一部分如下:

代码语言:javascript
复制
Cannot download "https://github.com/sass/node-sass/releases/download/v3.2.0/darwin-x64-51_binding.node": HTTP error 404 Not Found

然后:

代码语言:javascript
复制
node-sass@3.2.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the node-sass@3.2.0 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.

Node版本7.5.0和npm版本4.1.2,OSX Sierra

有什么建议吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-07-09 01:06:31

我在使用节点8.1.3时也遇到了同样的问题。我解决了降级到nodejs长期支持的最新版本(现在是6.11.0)的问题。

问题是node-sass不支持某些nodejs版本...

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42392226

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档