moscajs / mosca

MQTT broker as a module
mosca.io
3.2k stars 513 forks source link

error when installing mosca with node 6.11.0 & npm 5.1.0 in mac 10.12.5 #657

Closed ashareye closed 7 years ago

ashareye commented 7 years ago

hi, when i ran "npm install mosca --save", it logged that:

npm WARN deprecated mongodb@2.1.21: Please upgrade to 2.2.19 or higher npm WARN deprecated node-uuid@1.4.8: Use uuid module instead

leveldown@1.4.6 install /Volumes/work/working/code/test/micro.python/web/node_modules/leveldown prebuild --install

prebuild info begin Prebuild version 4.5.0 prebuild info looking for local prebuild @ prebuilds/leveldown-v1.4.6-node-v48-darwin-x64.tar.gz prebuild info looking for cached prebuild @ /Users/ashare/.npm/_prebuilds/https-github.com-level-leveldown-releases-download-v1.4.6-leveldown-v1.4.6-node-v48-darwin-x64.tar.gz prebuild info found cached prebuild prebuild info unpacking @ /Users/ashare/.npm/_prebuilds/https-github.com-level-leveldown-releases-download-v1.4.6-leveldown-v1.4.6-node-v48-darwin-x64.tar.gz prebuild info unpack resolved to /Volumes/work/working/code/test/micro.python/web/node_modules/leveldown/build/Release/leveldown.node prebuild info unpack required /Volumes/work/working/code/test/micro.python/web/node_modules/leveldown/build/Release/leveldown.node successfully prebuild info install Prebuild successfully installed!

zmq@2.15.3 install /Volumes/work/working/code/test/micro.python/web/node_modules/zmq node-gyp rebuild

gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "/usr/bin", you can set the PYTHON env variable. gyp ERR! stack at Object.failNoPython (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:483:19) gyp ERR! stack at Object. (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:397:16) gyp ERR! stack at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:68:16) gyp ERR! stack at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:80:29) gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/which.js:89:16 gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:42:5 gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/node_modules/isexe/mode.js:8:5 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:123:15) gyp ERR! System Darwin 16.6.0 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Volumes/work/working/code/test/micro.python/web/node_modules/zmq gyp ERR! node -v v6.11.0 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok

snappy@5.0.5 install /Volumes/work/working/code/test/micro.python/web/node_modules/snappy node-gyp rebuild

gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "/usr/bin", you can set the PYTHON env variable. gyp ERR! stack at Object.failNoPython (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:483:19) gyp ERR! stack at Object. (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:397:16) gyp ERR! stack at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:68:16) gyp ERR! stack at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:80:29) gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/which.js:89:16 gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:42:5 gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/node_modules/isexe/mode.js:8:5 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:123:15) gyp ERR! System Darwin 16.6.0 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Volumes/work/working/code/test/micro.python/web/node_modules/snappy gyp ERR! node -v v6.11.0 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok

fs-ext@0.5.0 install /Volumes/work/working/code/test/micro.python/web/node_modules/fs-ext node-gyp configure build

gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "/usr/bin", you can set the PYTHON env variable. gyp ERR! stack at Object.failNoPython (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:483:19) gyp ERR! stack at Object. (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:397:16) gyp ERR! stack at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:68:16) gyp ERR! stack at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:80:29) gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/which.js:89:16 gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:42:5 gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/node_modules/isexe/mode.js:8:5 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:123:15) gyp ERR! System Darwin 16.6.0 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build" gyp ERR! cwd /Volumes/work/working/code/test/micro.python/web/node_modules/fs-ext gyp ERR! node -v v6.11.0 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok

kerberos@0.0.23 install /Volumes/work/working/code/test/micro.python/web/node_modules/kerberos (node-gyp rebuild) || (exit 0)

gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "/usr/bin", you can set the PYTHON env variable. gyp ERR! stack at Object.failNoPython (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:483:19) gyp ERR! stack at Object. (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:397:16) gyp ERR! stack at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:68:16) gyp ERR! stack at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:80:29) gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/which.js:89:16 gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:42:5 gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/node_modules/isexe/mode.js:8:5 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:123:15) gyp ERR! System Darwin 16.6.0 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Volumes/work/working/code/test/micro.python/web/node_modules/kerberos gyp ERR! node -v v6.11.0 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm WARN optional SKIPPING OPTIONAL DEPENDENCY: zmq@2.15.3 (node_modules/zmq): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: zmq@2.15.3 install: node-gyp rebuild npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: snappy@5.0.5 (node_modules/snappy): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: snappy@5.0.5 install: node-gyp rebuild npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs-ext@0.5.0 (node_modules/fs-ext): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs-ext@0.5.0 install: node-gyp configure build npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

ashareye commented 7 years ago

Are these error packages all optional. Mosca is ok to run with these rebuild error, isn't it?

mcollina commented 7 years ago

Yes it is.