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

Error installing laravel-mix on WSL #1804

Closed
YahzeeSkellington opened this issue Nov 2, 2018 · 4 comments
Closed

Error installing laravel-mix on WSL #1804

YahzeeSkellington opened this issue Nov 2, 2018 · 4 comments

Comments

@YahzeeSkellington
Copy link

I'm unable to run npm install with Laravel Mix. The error shows a 404 trying to download from https://github.com/sass/node-sass/releases/download/v4.9.4/linux-x64-67_binding.node and visiting that link on the browser also shows a 404. I check on the releases page for node-sass and the list only goes up until linux-x64-64, not x64-67 like Laravel Mix requests.

I tried running the install inside Laravel and on its own and it's the same output:

> node-sass@4.9.4 install /mnt/d/Sites/blog/node_modules/node-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.9.4/linux-x64-67_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.9.4/linux-x64-67_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
  • Laravel Mix Version: 2.1.14
  • Node Version:
  • NPM Version:
  • OS: WSL on Windows 10
@ankurk91
Copy link
Contributor

ankurk91 commented Nov 3, 2018

It is most likely node-sass issue

@benjaminrosenberg
Copy link

Same issue

@rossbearman
Copy link

rossbearman commented Nov 25, 2018

node-sass@4.9.4 and below don't support Node 11. If you manually require the following in your package.json it should resolve the issue.

"node-sass": "^4.10.0",

See this node-sass PR for details.

@JeffreyWay
Copy link
Collaborator

We’re moving away from node-sass as part of the Mix 4 release. So that will fix this issue.

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

5 participants