This repository was archived by the owner on Jul 24, 2024. It is now read-only.
This repository was archived by the owner on Jul 24, 2024. It is now read-only.
support for node.js 12.x #2632
Closed
Description
node v12.0.0 just got released: https://nodejs.org/en/blog/release/v12.0.0/
installation is failing on macOS mojave
- NPM version (
npm -v
): 6.9.0 - Node version (
node -v
): 12.0.0 - Node Process (
node -p process.versions
): [see below] - Node Platform (
node -p process.platform
): darwin - Node architecture (
node -p process.arch
): x64 - node-sass version (
node -p "require('node-sass').info"
):Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (72)
- npm node-sass versions (
npm ls node-sass
): node-sass@4.11.0
// process.versions:
{
node: '12.0.0',
v8: '7.4.288.21-node.16',
uv: '1.28.0',
zlib: '1.2.11',
brotli: '1.0.7',
ares: '1.15.0',
modules: '72',
nghttp2: '1.38.0',
napi: '4',
llhttp: '1.1.1',
http_parser: '2.8.0',
openssl: '1.1.1b',
cldr: '34.0',
icu: '63.1',
tz: '2018e',
unicode: '11.0'
}
Activity
xzyfer commentedon Apr 23, 2019
Updated. We have a PR in #2633 but are blocked on the nodejs team updating nan for Node 12.
xzyfer commentedon Apr 24, 2019
Created a tracking issue nodejs/nan#849
jiqiangbing commentedon Apr 24, 2019
Installation and compile is failing on windows.

And when I change
v8::String::Utf8Value string(value);
to
v8::String::Utf8Value string(v8::Isolate::GetCurrent(), value);
It's works!
Seems String::Utf8Value with one arg is removed in new V8 of node 12.
EricMCornelius commentedon Apr 24, 2019
@xzyfer - Looks like the compilation error is originating from that unshimmed v8 string constructor, which is no longer valid. Not actually something NAN updates will fix.
You could use https://github.com/nodejs/nan/blob/master/doc/v8_misc.md#nanutf8string though.
Allow failures on node 12: sass/node-sass#2632
Change back to node v11 see sass/node-sass#2632
23 remaining items