Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis Building Failed : Cannot download node-sass #1

Open
songzheng45 opened this issue Apr 26, 2018 · 1 comment
Open

Travis Building Failed : Cannot download node-sass #1

songzheng45 opened this issue Apr 26, 2018 · 1 comment

Comments

@songzheng45
Copy link
Owner

Travis building log is blow:

> [email protected] install /home/travis/build/songzheng45/xingzheng.me/node_modules/node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.8.2/linux-x64-64_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.8.2/linux-x64-64_binding.node": 
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location
      try setting a proxy via HTTP_PROXY, e.g. 
      export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
      npm config set proxy http://example.com:8080

......
npm ERR! Failed at the [email protected] postinstall script.
@songzheng45
Copy link
Owner Author

songzheng45 commented Apr 26, 2018

Steps to solve problem:

  1. Install node version v8.11.1 instead of latest version (v10)
  2. Install npm version v4 instead of latest
  3. run npm rebuild node-saas before npm install
language: node_js
node_js: 
  - "8.11.1"

before_install: 
  - npm install -g npm@4

install:
  - npm rebuild node-sass
  - npm install

Step 1

After test, I found latest version of node (v10) can't solve this problem, so I downgrade to v8.11.1.

Step 2

One contributor of node-sass said we need to downgrad to npm@4
sass/node-sass#1991 (comment)

Step 3

We need to build the binding for current environment
sass/node-sass#1527 (comment)

How to downgrade npm version: expo/expo#297 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant