-
-
Notifications
You must be signed in to change notification settings - Fork 508
npm install mosca --save ==> error #526
Comments
Those are optional C++ dependencies. Is installing completing ok anyway? Can you upload the full npm log? To install those dependencies you need https://github.com/nodejs/node-gyp#installation. |
Thank you, npm log as below:- D:\NodeJS\Projects_test>npm install mosca --save
| defined npm_config_node_gyp (node "C:\Program
D:\NodeJS\Projects_test\node_modules\mosca\node_modules\ascoltatori\node_modules\kerberos>if
D:\NodeJS\Projects_test\node_modules\mosca\node_modules\ascoltatori\node_modules\zmq>if
D:\NodeJS\Projects_test\node_modules\mosca\node_modules\ascoltatori\node_modules\qlobber-fsq\node_modules\fs-ext>if npm WARN optional dep failed, continuing fs-ext@0.5.0
D:\NodeJS\Projects_test\node_modules\mosca\node_modules\ascoltatori\node_modules\kafka-node\node_modules\snappy>if
prebuild WARN install No prebuilt binaries found (target=v4.4.7 arch=x64 D:\NodeJS\Projects_test> On Fri, Jul 22, 2016 at 7:25 PM, Matteo Collina notifications@github.com
|
Only optional dependency failed, you are good to go. |
Thank you.
Do you have solution or suggestion to fixed it? |
If you are not using the optional dependency, it is not an issue. |
i using windows 10 pro 64x, nodejs 4.4.7 64-bit and create new project with npm init, then npm install mosca --save, it show error like below:-
mqtt_server\node_modules\mosca\node_modules\hiredis>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.
TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [D:\NodeJS\Projects\mqt
t\mosca\mqtt_server\node_modules\mosca\node_modules\hiredis\build\deps\hiredis-c.vcxproj]
gyp ERR! build error
gyp ERR! stack Error:
C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe
failed with exit code: 1gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:276: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 Windows_NT 10.0.10586
command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd D:\NodeJS\Projects\mqtt\mosca\mqtt_server\node_modules\mosca\node_modules\hiredis
gyp ERR! node -v v4.4.7
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
.... and more
How to fix it?
The text was updated successfully, but these errors were encountered: