I'm trying to npm install -g node-xmpp and the build fails on the c++ compilation part with the following error:
LINK : fatal error LNK1181: cannot open input file 'kernel32.lib' [C:\Users\jhon\AppData\Roaming\npm\node_modules\node-xmpp\node_modules\node-expat\build\node_expat.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\shon\AppData\Roaming\npm\node_modules\node-xmpp\node_modules\node-expat
gyp ERR! node -v v0.10.24
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok
I've tried removing and re-installing all my visual studio components, with no luck (currently using VS 2013 express).
if I look at the environment vars on visual studio command prompt, I can see that windowssdkdir points to C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\ and kernel32.lib is there at the Lib dir.
I'm lost, any help would be appreciated
Related
I am unable to install node-rdkafka in any of my projects recently by using
npm i node-rdkafka
or if I had a package-lock.json using
npm ci
this is the error I am getting with node 14 and npm 6.14.17 -
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion#1, but package-lock.json was generated for lockfileVersion#2. I'll try to do my best with it!
> #newrelic/native-metrics#7.1.1 install /Users/subhrangshu/Documents/MyProject/node_modules/#newrelic/native-metrics
> node ./lib/pre-build.js install native_metrics
============================================================================
Attempting install in native-metrics module. Please note that this is an
OPTIONAL dependency, and any resultant errors in this process will not
affect the general performance of the New Relic agent, but event loop and
garbage collection metrics will not be collected.
============================================================================
> /Users/subhrangshu/.nvm/versions/node/v14.21.2/bin/node /Users/subhrangshu/.nvm/versions/node/v14.21.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js clean configure
> /Users/subhrangshu/.nvm/versions/node/v14.21.2/bin/node /Users/subhrangshu/.nvm/versions/node/v14.21.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build -j 4 native_metrics
CXX(target) Release/obj.target/native_metrics/src/GCBinder.o
CXX(target) Release/obj.target/native_metrics/src/native_metrics.o
CXX(target) Release/obj.target/native_metrics/src/LoopChecker.o
CXX(target) Release/obj.target/native_metrics/src/RUsageMeter.o
In file included from ../src/GCBinder.cpp:7:
../src/GCBinder.hpp:8:10: fatal error: map: No such file or directory
8 | #include <map>
| ^~~~~
../src/LoopChecker.cpp:7:10: fatal error: algorithm: No such file or directory
7 | #include <algorithm>
| ^~~~~~~~~~~
../src/RUsageMeter.cpp:7:10: fatal error: cstring: No such file or directory
7 | #include <cstring>
| ^~~~~~~~~
compilation terminated.
compilation terminated.
compilation terminated.
make: *** [Release/obj.target/native_metrics/src/GCBinder.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Release/obj.target/native_metrics/src/LoopChecker.o] Error 1
make: *** [Release/obj.target/native_metrics/src/RUsageMeter.o] Error 1
In file included from /Users/subhrangshu/Library/Caches/node-gyp/14.21.2/include/node/node.h:67,
from ../../../nan/nan.h:58,
from ../src/native_metrics.cpp:7:
/Users/subhrangshu/Library/Caches/node-gyp/14.21.2/include/node/v8.h:22:10: fatal error: memory: No such file or directory
22 | #include <memory>
| ^~~~~~~~
compilation terminated.
make: *** [Release/obj.target/native_metrics/src/native_metrics.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/subhrangshu/.nvm/versions/node/v14.21.2/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:400:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:285:12)
gyp ERR! System Darwin 22.2.0
gyp ERR! command "/Users/subhrangshu/.nvm/versions/node/v14.21.2/bin/node" "/Users/subhrangshu/.nvm/versions/node/v14.21.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "-j" "4" "native_metrics"
gyp ERR! cwd /Users/subhrangshu/Documents/MyProject/node_modules/#newrelic/native-metrics
gyp ERR! node -v v14.21.2
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
Failed to execute native-metrics install: No pre-built artifacts for your OS/architecture.
> node-rdkafka#2.14.0 install /Users/subhrangshu/Documents/MyProject/node_modules/node-rdkafka
> node-gyp rebuild
CXX(target) Release/obj.target/node-librdkafka/src/binding.o
../src/binding.cc:10:10: fatal error: iostream: No such file or directory
10 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
make: *** [Release/obj.target/node-librdkafka/src/binding.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/subhrangshu/.nvm/versions/node/v14.21.2/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:400:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:285:12)
gyp ERR! System Darwin 22.2.0
gyp ERR! command "/Users/subhrangshu/.nvm/versions/node/v14.21.2/bin/node" "/Users/subhrangshu/.nvm/versions/node/v14.21.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/subhrangshu/Documents/MyProject/node_modules/node-rdkafka
gyp ERR! node -v v14.21.2
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: #newrelic/native-metrics#7.1.1 (node_modules/#newrelic/native-metrics):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: #newrelic/native-metrics#7.1.1 install: `node ./lib/pre-build.js install native_metrics`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-rdkafka#2.14.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-rdkafka#2.14.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/subhrangshu/.npm/_logs/2023-01-13T04_21_16_920Z-debug.log
based on this question -
GYP ERR! build error. stack Error: 'make' failed with exit code 2
and other similar articles -
Have tried upgrading to macOS 13.1
Tried installing using node 16, node 15, node 18 and node 14
Removed the package-lock.json and node_modules folder and reinstalled using npm i instead.
Removed and reinstalled xcode-select --install
Even though the error shown is - it is unable to read c++ headers, have tried compiling a Hello World C++ program using g++ main.cpp -o main or make main and both compiled the program successfully
Have updated and upgraded brew
Current versions -
UPDATE. Output of gcc -v as requested:
→ gcc -v
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
I am trying to follow the Node.js official addons example
The node-gyp configure step runs without errors.
However, the following node-gyp build step is failing:
→ node-gyp build
gyp info it worked if it ends with ok
gyp info using node-gyp#5.0.2
gyp info using node#10.16.0 | darwin | x64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
CXX(target) Release/obj.target/addon/hello.o
error: invalid value 'gnu++1y' in '-std=gnu++1y'
make: *** [Release/obj.target/addon/hello.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/dmitrizaitsev/.npm-global/lib/node_modules/node-gyp/lib/build.js:190:23)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Darwin 12.6.0
gyp ERR! command "/usr/local/bin/node" "/Users/dmitrizaitsev/.npm-global/bin/node-gyp" "build"
gyp ERR! cwd /Users/dmitrizaitsev/test/addons/official
gyp ERR! node -v v10.16.0
gyp ERR! node-gyp -v v5.0.2
gyp ERR! not ok
The first error message is
invalid value 'gnu++1y' in '-std=gnu++1y'
What does it mean and how can this error possibly be fixed?
when I installing event-loop-stats npm in windows 10 environment
Error is throwing. Anyone help me to fix this issue.
C:\Users\bane\Desktop\package_test\node_modules\event-loop-stats>if not defined npm_config_node_gyp (node "C:\Users\devaraj
.c\AppData\Roaming\nvm\v6.11.2\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (
node "" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
eventLoopStats.cc
win_delay_load_hook.cc
c:\users\bane\.node-gyp\6.11.2\include\node\uv-win.h(32): fatal error C1083: Cannot open include file: 'winsock2.h': No su
ch file or directory (compiling source file ..\src\eventLoopStats.cc) [C:\Users\bane\Desktop\package_test\node_modules\eve
nt-loop-stats\build\eventLoopStats.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\bane\AppData\Roaming\nvm\v6.11.2\node_modules\npm\node_modules\node-gyp
\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\bane\\AppData\\Roaming\\nvm\\v6.11.2\\node_modules\\npm\
\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\bane\Desktop\package_test\node_modules\event-loop-stats
gyp ERR! node -v v6.11.2
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
already installed npm install --global --production windows-build-tools
After install windows sdk 10
c:\users\bane\.node-gyp\6.11.2\include\node\uv-errno.h(25): fatal error C1083: Cannot open include file: 'errno.h': No such file or directory (compiling source fi
le ..\src\eventLoopStats.cc) [C:\Program Files\nodejs\node_modules\event-loop-stats\build\eventLoopStats.vcxproj]
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source fil
e C:\User\bane\AppData\Roaming\nvm\v6.11.2\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.cc) [C:\Program Files\nodejs\node_modules\event-loop-st
ats\build\eventLoopStats.vcxproj]
After configuring c++ path in environment variables
c:\users\devaraj.c\.node-gyp\6.11.2\include\node\uv-errno.h(25): fatal error C1083: Cannot open include file: 'errno.h': No such file
or directory (compiling source file ..\src\eventLoopStats.cc) [C:\Users\devaraj.c\Desktop\package_test\node_modules\event-loop-stats
\build\eventLoopStats.vcxproj]
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h': No such file
or directory (compiling source file C:\Users\devaraj.c\AppData\Roaming\nvm\v6.11.2\node_modules\npm\node_modules\node-gyp\src\win_del
ay_load_hook.cc) [C:\Users\devaraj.c\Desktop\package_test\node_modules\event-loop-stats\build\eventLoopStats.vcxproj]
I am new to node,
I have node version 8.6. Whenever I try to build this particular app which I cloned from git which a tutorial tutor built and his was working, I get this error. I have tried all I can think of but this error persist whenever I run the npm install command
C:\Users\Ogbonna Vitalis Pc\.node-gyp\8.6.0\x64\node.lib : fatal error LNK1107: invalid or corrupt file: cannot read at
0x21E00D [C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass\build\binding.vcxproj]
Done Building Project "C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass\build\binding.vcxproj" (default t
argets) -- FAILED.
Done Building Project "C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass\build\binding.vcxproj.metaproj" (
default targets) -- FAILED.
Done Building Project "C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass\build\binding.sln" (default targe
ts) -- FAILED.
Build FAILED.
"C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass\build\binding.sln" (default target) (1) ->
"C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass\build\binding.vcxproj.metaproj" (default target) (2) ->
"C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass\build\src\libsass.vcxproj" (default target) (3) ->
(ClCompile target) ->
cl : Command line warning D9025: overriding '/GR-' with '/GR' [C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\n
ode-sass\build\src\libsass.vcxproj]
cl : Command line warning D9025: overriding '/GR-' with '/GR' [C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\n
ode-sass\build\src\libsass.vcxproj]
cl : Command line warning D9025: overriding '/GR-' with '/GR' [C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\n
ode-sass\build\src\libsass.vcxproj]
cl : Command line warning D9025: overriding '/GR-' with '/GR' [C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\n
ode-sass\build\src\libsass.vcxproj]
cl : Command line warning D9025: overriding '/GR-' with '/GR' [C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\n
ode-sass\build\src\libsass.vcxproj]
..\..\src\libsass\src\json.cpp(26): warning C4005: '_CRT_NONSTDC_NO_DEPRECATE': macro redefinition [C:\xampp\htdocs\n
odejs\offlineweb\wittr\node_modules\node-sass\build\src\libsass.vcxproj]
..\..\src\libsass\src\sass2scss.cpp(9): warning C4005: '_CRT_NONSTDC_NO_DEPRECATE': macro redefinition [C:\xampp\htdo
cs\nodejs\offlineweb\wittr\node_modules\node-sass\build\src\libsass.vcxproj]
cl : Command line warning D9025: overriding '/GR-' with '/GR' [C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\n
ode-sass\build\src\libsass.vcxproj]
"C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass\build\binding.sln" (default target) (1) ->
"C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass\build\binding.vcxproj.metaproj" (default target) (2) ->
"C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass\build\binding.vcxproj" (default target) (4) ->
..\src\binding.cpp(140): warning C4244: 'argument': conversion from 'size_t' to 'double', possible loss of data [C:\x
ampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass\build\binding.vcxproj]
c:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\nan\nan_new.h(208): warning C4244: 'argument': conversion from '
size_t' to 'double', possible loss of data (compiling source file ..\src\sass_types\list.cpp) [C:\xampp\htdocs\nodejs\o
fflineweb\wittr\node_modules\node-sass\build\binding.vcxproj]
c:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\nan\nan_new.h(208): warning C4244: 'argument': conversion from '
size_t' to 'double', possible loss of data (compiling source file ..\src\sass_types\map.cpp) [C:\xampp\htdocs\nodejs\of
flineweb\wittr\node_modules\node-sass\build\binding.vcxproj]
"C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass\build\binding.sln" (default target) (1) ->
"C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass\build\binding.vcxproj.metaproj" (default target) (2) ->
"C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass\build\binding.vcxproj" (default target) (4) ->
(Link target) ->
C:\Users\Ogbonna Vitalis Pc\.node-gyp\8.6.0\x64\node.lib : fatal error LNK1107: invalid or corrupt file: cannot read
at 0x21E00D [C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass\build\binding.vcxproj]
11 Warning(s)
1 Error(s)
Time Elapsed 00:04:58.47
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at emitTwo (events.js:125:13)
gyp ERR! stack at ChildProcess.emit (events.js:213:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\xampp\\htdocs\\nodejs\\offlineweb\\wittr\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass
gyp ERR! node -v v8.6.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.1.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil#1.2.1 (node_modules\bufferutil):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil#1.2.1 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate#1.2.2 (node_modules\utf-8-validate):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate#1.2.2 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass#3.13.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass#3.13.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Ogbonna Vitalis Pc\AppData\Roaming\npm-cache\_logs\2017-10-29T22_55_33_341Z-debug.log
Pls your suggestions will highly be appreciated. Thanks in advance.
After an extensive research, I created an issue in github, where I cloned the test app from. This solution was suggested and it worked for me.
https://github.com/jakearchibald/wittr/issues/27
I also found this helpful comment.
After installing Python 2.7 and Visual C++ Build Tools I deleted node_modules folder, opened CMD from Administrator and ran npm install --msvs_version=2015. And it installed successfully!
This link helped me to install Python and VS C++ build tools.
Hi I'm trying to install ember-cli based off 'nodesource/wheezy:5.0.0'
I'm getting the following error..would it be possible to fix this issue? or do I need to go back to older versions of node (0.12)?
Step 0 : FROM nodesource/wheezy:5.0.0
5.0.0: Pulling from nodesource/wheezy
1d53ee5b1800: Pull complete
74872ba2a3b0: Pull complete
292a0889fc25: Pull complete
d8e43051f9c0: Pull complete
34a3fa49705c: Pull complete
992d01b899f4: Pull complete
120d2b6ae4ba: Pull complete
651395105b63: Pull complete
bf87c0988c7e: Pull complete
38e00921614b: Pull complete
038db7a41985: Pull complete
Digest: sha256:ace6600dde6399fa02df5c03c2ecf6b3e7de4745142639d13f502a04c1e62fa4
Status: Downloaded newer image for nodesource/wheezy:5.0.0
---> 038db7a41985
Step 1 : RUN npm install -g bower ember-cli
---> Running in 6c97ac90d722
/usr/bin/bower -> /usr/lib/node_modules/bower/bin/bower
/usr/bin/ember -> /usr/lib/node_modules/ember-cli/bin/ember
> bufferutil#1.1.0 install /usr/lib/node_modules/ember-cli/node_modules/bufferutil
> node-gyp rebuild
gyp WARN EACCES user "undefined" does not have permission to access the dev dir "/root/.node-gyp/5.0.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/ember-cli/node_modules/bufferutil/.node-gyp"
make: Entering directory `/usr/lib/node_modules/ember-cli/node_modules/bufferutil/build'
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
In file included from ../src/bufferutil.cc:16:0:
../../nan/nan.h:261:25: error: redefinition of 'template<class T> v8::Local<T> _NanEnsureLocal(v8::Local<T>)'
../../nan/nan.h:256:25: error: 'template<class T> v8::Local<T> _NanEnsureLocal(v8::Handle<T>)' previously declared here
../../nan/nan.h:661:13: error: 'node::smalloc' has not been declared
../../nan/nan.h:661:35: error: expected ',' or '...' before 'callback'
../../nan/nan.h: In function 'v8::Local<v8::Object> NanNewBufferHandle(char*, size_t, int)':
../../nan/nan.h:665:50: error: 'callback' was not declared in this scope
../../nan/nan.h:665:60: error: 'hint' was not declared in this scope
../../nan/nan.h: In function 'v8::Local<v8::Object> NanNewBufferHandle(const char*, uint32_t)':
../../nan/nan.h:672:67: error: call of overloaded 'New(v8::Isolate*, const char*&, uint32_t&)' is ambiguous
../../nan/nan.h:672:67: note: candidates are:
In file included from ../src/bufferutil.cc:10:0:
/usr/lib/node_modules/ember-cli/node_modules/bufferutil/.node-gyp/5.0.0/include/node/node_buffer.h:31:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding) <near match>
/usr/lib/node_modules/ember-cli/node_modules/bufferutil/.node-gyp/5.0.0/include/node/node_buffer.h:31:40: note: no known conversion for argument 3 from 'uint32_t {aka unsigned int}' to 'node::encoding'
/usr/lib/node_modules/ember-cli/node_modules/bufferutil/.node-gyp/5.0.0/include/node/node_buffer.h:43:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t) <near match>
/usr/lib/node_modules/ember-cli/node_modules/bufferutil/.node-gyp/5.0.0/include/node/node_buffer.h:43:40: note: no known conversion for argument 2 from 'const char*' to 'char*'
In file included from ../src/bufferutil.cc:16:0:
../../nan/nan.h: In function 'v8::Local<v8::Object> NanNewBufferHandle(uint32_t)':
../../nan/nan.h:676:61: error: could not convert 'node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))' from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object>'
../../nan/nan.h: In function 'v8::Local<v8::Object> NanBufferUse(char*, uint32_t)':
../../nan/nan.h:683:12: error: 'Use' is not a member of 'node::Buffer'
make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 1
make: Leaving directory `/usr/lib/node_modules/ember-cli/node_modules/bufferutil/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.1.10-boot2docker
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/ember-cli/node_modules/bufferutil
gyp ERR! node -v v5.0.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
/usr/lib
`-- bower#1.6.5
npm ERR! Linux 4.1.10-boot2docker
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "bower" "ember-cli"
npm ERR! node v5.0.0
npm ERR! npm v3.3.6
npm ERR! code ELIFECYCLE
npm ERR! bufferutil#1.1.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bufferutil#1.1.0 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the bufferutil package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls bufferutil
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /usr/src/app/npm-debug.log
You can try using:
npm install -g ember-cli --no-optional