Closed felixbillon closed 8 years ago
I get the same error, when I create a new project with jhipster...
This is an issue with the compilation of native addons related to socket.io/engine.io. Please ensure that installation of those works independently.
C:\khanh\totonow\node_modules\karma\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\utf-8-validate>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\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. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(366,5): warning MSB8003: Could not fi nd WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid versio n number. [C:\khanh\totonow\node_modules\karma\node_modules\socket.io\node_modules\engine.io\node_modules\ws\nodemodul es\utf-8-validate\build\validation.vcxproj] TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:\khanh\totonow\node modules\karma\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\utf-8-validate\build\validatio n.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:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:269:23) gyp ERR! stack at ChildProcess.emit (events.js:110:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12) gyp ERR! System Windows_NT 6.3.9600 gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\khanh\totonow\node_modules\karma\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\utf-8-validate gyp ERR! node -v v0.12.7 gyp ERR! node-gyp -v v2.0.1 gyp ERR! not ok
bufferutil@1.1.0 install C:\khanh\totonow\node_modules\karma\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\bufferutil node-gyp rebuild C:\khanh\totonow\node_modules\karma\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\bufferutil>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\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. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(366,5): warning MSB8003: Could not fi nd WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid versio n number. [C:\khanh\totonow\node_modules\karma\node_modules\socket.io\node_modules\engine.io\node_modules\ws\nodemodul es\bufferutil\build\bufferutil.vcxproj] TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:\khanh\totonow\node modules\karma\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\bufferutil\build\bufferutil.vc xproj]
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:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:269:23) gyp ERR! stack at ChildProcess.emit (events.js:110:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12) gyp ERR! System Windows_NT 6.3.9600 gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\khanh\totonow\node_modules\karma\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\bufferutil gyp ERR! node -v v0.12.7 gyp ERR! node-gyp -v v2.0.1 gyp ERR! not ok npm WARN optional dep failed, continuing utf-8-validate@1.1.0
bufferutil@1.1.0 install C:\khanh\totonow\node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil node-gyp rebuild C:\khanh\totonow\node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\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. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(366,5): warning MSB8003: Could not fi nd WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid versio n number. [C:\khanh\totonow\node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine .io-client\node_modules\ws\nodemodules\bufferutil\build\bufferutil.vcxproj] TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:\khanh\totonow\node modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_m odules\bufferutil\build\bufferutil.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:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:269:23) gyp ERR! stack at ChildProcess.emit (events.js:110:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12) gyp ERR! System Windows_NT 6.3.9600 gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\khanh\totonow\node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil gyp ERR! node -v v0.12.7 gyp ERR! node-gyp -v v2.0.1 gyp ERR! not ok npm WARN optional dep failed, continuing bufferutil@1.1.0
utf-8-validate@1.1.0 install C:\khanh\totonow\node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate node-gyp rebuild C:\khanh\totonow\node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\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. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(366,5): warning MSB8003: Could not fi nd WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid versio n number. [C:\khanh\totonow\node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine .io-client\node_modules\ws\nodemodules\utf-8-validate\build\validation.vcxproj] TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:\khanh\totonow\node modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_m odules\utf-8-validate\build\validation.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:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:269:23) gyp ERR! stack at ChildProcess.emit (events.js:110:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12) gyp ERR! System Windows_NT 6.3.9600 gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\khanh\totonow\node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate gyp ERR! node -v v0.12.7 gyp ERR! node-gyp -v v2.0.1 gyp ERR! not ok npm WARN optional dep failed, continuing bufferutil@1.1.0 npm WARN optional dep failed, continuing utf-8-validate@1.1.0 jasmine-core@2.3.4 node_modules\jasmine-core
karma-jasmine@0.3.6 node_modules\karma-jasmine
karma@0.13.9 node_modules\karma ├── di@0.0.1 ├── rimraf@2.4.3 ├── graceful-fs@4.1.2 ├── mime@1.3.4 ├── colors@1.1.2 ├── http-proxy@1.11.2 (eventemitter3@1.1.1, requires-port@0.0.1) ├── glob@5.0.14 (path-is-absolute@1.0.0, inherits@2.0.1, once@1.3.2, inflight@1.0.4) ├── optimist@0.6.1 (wordwrap@0.0.3, minimist@0.0.10) ├── source-map@0.4.4 (amdefine@1.0.0) ├── dom-serialize@2.2.0 (custom-event@1.0.0, void-elements@1.0.0, extend@2.0.1, ent@2.2.0) ├── minimatch@2.0.10 (brace-expansion@1.1.0) ├── useragent@2.1.7 (lru-cache@2.2.4) ├── connect@3.4.0 (utils-merge@1.0.0, parseurl@1.3.0, debug@2.2.0, finalhandler@0.4.0) ├── bluebird@2.10.0 ├── body-parser@1.13.3 (bytes@2.1.0, content-type@1.0.1, depd@1.0.1, qs@4.0.0, on-finished@2.3.0, raw-body@2.1.2, http-errors@1.3.1, debug@2.2.0, type-is@1.6.8, iconv-lite@0.4.11) ├── expand-braces@0.1.1 (array-uniq@1.0.2, array-slice@0.2.3, braces@0.1.5) ├── chokidar@1.0.5 (arrify@1.0.0, path-is-absolute@1.0.0, is-glob@1.1.3, glob-parent@1.2.0, async-each@0.1.6, is-binary-path@1.0.1, readdirp@1.4.0, anymatch@1.3.0) ├── lodash@3.10.1 ├── log4js@0.6.26 (async@0.2.10, underscore@1.8.2, semver@4.3.6, readable-stream@1.0.33) ├── memoizee@0.3.9 (lru-queue@0.1.0, next-tick@0.2.2, timers-ext@0.1.0, d@0.1.1, event-emitter@0.3.3, es6-weak-map@0.1.4, es5-ext@0.10.7) ├── core-js@1.1.4 └── socket.io@1.3.6 (debug@2.1.0, has-binary-data@0.1.3, socket.io-adapter@0.3.1, socket.io-parser@2.2.4, engine.io@1.5.2, socket.io-client@1.3.6)
grunt-karma@0.12.1 node_modules\grunt-karma └── lodash@3.10.1
phantomjs@1.9.18 node_modules\phantomjs ├── which@1.0.9 ├── progress@1.1.8 ├── kew@0.4.0 ├── adm-zip@0.4.4 ├── request-progress@0.3.1 (throttleit@0.0.2) ├── npmconf@2.1.1 (ini@1.3.4, uid-number@0.0.5, inherits@2.0.1, once@1.3.2, osenv@0.1.3, config-chain@1.1.9, nopt@3.0.3, mkdirp@0.5.1, semver@4.3.6) ├── fs-extra@0.23.1 (path-is-absolute@1.0.0, graceful-fs@4.1.2, jsonfile@2.2.1, rimraf@2.4.3) └── request@2.42.0 (caseless@0.6.0, aws-sign2@0.5.0, forever-agent@0.5.2, stringstream@0.0.4, oauth-sign@0.4.0, tunnel-agent@0.4.1, json-stringify-safe@5.0.1, qs@1.2.2, node-uuid@1.4.3, mime-types@1.0.2, form-data@0.1.4, http-signature@0.10.1, bl@0.9.4, hawk@1.1.1, tough-cookie@2.0.0)
karma-phantomjs-launcher@0.2.1 node_modules\karma-phantomjs-launcher └── lodash@3.10.1
I tried to find what is inside
C:\khanh\todoapp\node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil\build\bufferutil.vcxproj
But when I went to "C:\khanh\todoapp\node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\"
there is not "\bufferutil\build\bufferutil.vcxproj "
@do-n-khanh you can ignore those errors, it's just letting you know that an optional dependency is failing probably because of https://github.com/karma-runner/karma/issues/1577#issuecomment-138924925
I am actually trying to install angular using "yo angular". I ignored the errors as you said. When I ran testing. I got this result
The result should be like this (css load correctly) http://yeoman.io/codelab/preview-inbrowser.html
So I think the reason I didnt get the correct result is because of the above issue. Do you have any idea? Thanks
Pretty sure the display/css error is because of something else, the errors above are releated to karma
and socket.io
which has nothing to do, with how these things are displayed as it is only needed for running tests.
thanks
I am getting the same error of cl.exe was not found. Is there any variable to the path to cl.exe so that I can point to the exact location?
Looks like at least one of you guys are on Windows as am I. Unfortunately getting node to play nice with windows is usually challenging.
The following thread solved the gekko build issue for me: http://stackoverflow.com/a/33716573
Hope it helps someone else.
Hi,
I got the following error during npm install :
Somebody have an idea ?