Build failure on Node 12.3.1
See original GitHub issue- Node Version: node: v12.3.1 npm: 6.9.0
- Platform: Darwin 18.6.0 Darwin Kernel Version 18.6.0
- Compiler: Apple LLVM version 10.0.1 (clang-1001.0.46.4) Target: x86_64-apple-darwin18.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
- Module: node-gyp
c++ '-DNODE_GYP_MODULE_NAME=binding' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DOPENSSL_THREADS' '-DBUILDING_NODE_EXTENSION' -I/Users/robd/.node-gyp/12.3.1/include/node -I/Users/robd/.node-gyp/12.3.1/src -I/Users/robd/.node-gyp/12.3.1/deps/openssl/config -I/Users/robd/.node-gyp/12.3.1/deps/openssl/openssl/include -I/Users/robd/.node-gyp/12.3.1/deps/uv/include -I/Users/robd/.node-gyp/12.3.1/deps/zlib -I/Users/robd/.node-gyp/12.3.1/deps/v8/include -I../../nan -I../src/libsass/include -Os -gdwarf-2 -mmacosx-version-min=10.7 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++1y -stdlib=libc++ -fno-rtti -fno-exceptions -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/binding/src/create_string.o.d.raw -c -o Release/obj.target/binding/src/create_string.o ../src/create_string.cpp ../src/create_string.cpp:17:25: error: no matching constructor for initialization of 'v8::String::Utf8Value' v8::String::Utf8Value string(value); ^ ~~~~~ /Users/robd/.node-gyp/12.3.1/include/node/v8.h:3002:5: note: candidate constructor not viable: no known conversion from 'v8::Local<v8::Value>' to 'const v8::String::Utf8Value' for 1st argument Utf8Value(const Utf8Value&) = delete; ^ /Users/robd/.node-gyp/12.3.1/include/node/v8.h:2995:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided Utf8Value(Isolate* isolate, Local<v8::Value> obj); ^ 1 error generated. make: *** [Release/obj.target/binding/src/create_string.o] Error 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/Users/robd/code/voxsnap-v2/assets/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:200:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12) gyp ERR! System Darwin 18.6.0 gyp ERR! command "/usr/local/Cellar/node/12.3.1/bin/node" "/Users/robd/code/voxsnap-v2/assets/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd /Users/robd/code/voxsnap-v2/assets/node_modules/node-sass gyp ERR! node -v v12.3.1 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok Build failed with error code: 1
23632 verbose stack Error: node-sass@4.11.0 postinstall: `node scripts/build.js`
23632 verbose stack Exit status 1
23632 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
23632 verbose stack at EventEmitter.emit (events.js:200:13)
23632 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
23632 verbose stack at ChildProcess.emit (events.js:200:13)
23632 verbose stack at maybeClose (internal/child_process.js:1021:16)
23632 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
23633 verbose pkgid node-sass@4.11.0
23634 verbose cwd /Users/robd/code/voxsnap-v2/assets
23635 verbose Darwin 18.6.0
23636 verbose argv "/usr/local/Cellar/node/12.3.1/bin/node" "/usr/local/bin/npm" "install"
23637 verbose node v12.3.1
23638 verbose npm v6.9.0
23639 error code ELIFECYCLE
23640 error errno 1
23641 error node-sass@4.11.0 postinstall: `node scripts/build.js`
23641 error Exit status 1
23642 error Failed at the node-sass@4.11.0 postinstall script.
23642 error This is probably not a problem with npm. There is likely additional logging output above.
23643 verbose exit [ 1, true ]
Issue Analytics
- State:
- Created 4 years ago
- Comments:31 (5 by maintainers)
Top Results From Across the Web
node-gyp rebuilding failing on macOS 12.3 to make for ...
I started facing and error on node-gyp when running make for hunspell which a dependency from the the npm library spellchecker after ...
Read more >Not Able to Build Some Versions of Python on M1 at 12.3.1
I trying to build older version of python such as 3.6, 3.7, 3.8 using pyenv and having build failures. I am on apple...
Read more >Unable to build a node on MacOS Monterey 12.3.1
When starting the process as described in the documentation, I'm stuck with the following: error: toolset gcc initialization: error: provided ...
Read more >Theia Community
yarn fail with error: …/node_modules/node-pty: Command failed. system info: Apple M1 Monterey 12.3.1 xcode-select version: 2395 node: ...
Read more >Why is my Node.js build failing because of no ... - Heroku Help
Heroku needs to know what version of Node.js to download for any app that is deployed on our platform. The convention is to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You need node-sass@4.12.0 for Node.js 12 support: https://github.com/sass/node-sass/releases/tag/v4.12.0
Wow, why this issue is present for almost a year now and not addressed?