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

Outdated node-sass is incompatible with node 12 #759

Closed
leo-cheron opened this issue Mar 4, 2020 · 6 comments
Closed

Outdated node-sass is incompatible with node 12 #759

leo-cheron opened this issue Mar 4, 2020 · 6 comments

Comments

@leo-cheron
Copy link

Hey,

The node-sass dependency needs to be updated as node-sass won't run with the current version of node (12+).

@mmunchandersen
Copy link

I'm getting this in Visual Studio 2019 16.5.0 when I do this in my Gulpfile.js (using "gulp": "4.0.2" and "gulp-sass": "4.0.2",:

var sass = require("gulp-sass");

Failed to run "C:\project-x\Gulpfile.js"...
cmd.exe /c gulp --tasks-simple
C:\project-x\node_modules\node-sass\lib\binding.js:13
throw new Error(errors.unsupportedEnvironment());
^
Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (72)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.11.0
at module.exports (C:\project-x\node_modules\node-sass\lib\binding.js:13:13)
at Object. (C:\project-x\node_modules\node-sass\lib\index.js:14:35)
at Module._compile (internal/modules/cjs/loader.js:959:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Function.Module._load (internal/modules/cjs/loader.js:727:14)
at Module.require (internal/modules/cjs/loader.js:852:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (C:\project-x\node_modules\gulp-sass\index.js:162:21)
at Module._compile (internal/modules/cjs/loader.js:959:30)

@harski
Copy link

harski commented Mar 19, 2020

In my brief test, bumping the node-sass dependency to 4.13.1 did not break anything.

@mmunchandersen
Copy link

mmunchandersen commented Mar 21, 2020

@harski I have never touched package-lock.json. Is this where you have bumped node-sass to 4.13.1?
2020-03-21_18-59-02

(sass / node-sass / releases: https://github.com/sass/node-sass/releases)

@harski
Copy link

harski commented Mar 22, 2020

@mmunchandersen I put "devDependencies": { "node-sass": "^4.13.1" } to my own project's package.json and ran npm install. The dependency got resolved to a node 12 compatible version.

@mmunchandersen
Copy link

thanks @harski it appears to have solved my issue too

@nitro404
Copy link

This can also be fixed by both bumping the internal version or by allowing the compiler to be passed in as an argument via #748.

@xzyfer xzyfer closed this as completed Apr 23, 2020
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