Skip to content
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
Closed
@dnalborczyk

Description

@dnalborczyk

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

pinned this issue on Apr 23, 2019
xzyfer

xzyfer commented on Apr 23, 2019

@xzyfer
Contributor

Updated. We have a PR in #2633 but are blocked on the nodejs team updating nan for Node 12.

xzyfer

xzyfer commented on Apr 24, 2019

@xzyfer
Contributor

Created a tracking issue nodejs/nan#849

self-assigned this
on Apr 24, 2019
jiqiangbing

jiqiangbing commented on Apr 24, 2019

@jiqiangbing

Installation and compile is failing on windows.
image
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

EricMCornelius commented on Apr 24, 2019

@EricMCornelius

@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.

added a commit that references this issue on Apr 24, 2019

23 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @mtimofiiv@xzyfer@EricMCornelius@liudonghua123@i5o

    Issue actions

      support for node.js 12.x · Issue #2632 · sass/node-sass