node.js - Compilation error installing nodetime -
i'm trying install nodetime module (for node), when do, following compilation error:
make: *** [release/obj.target/nodetime_native/src/nodetime_native.o] error 1 make: leaving directory
/home/fernando/node_modules/nodetime-native/build' gyp err! build error gyp err! stack error:
make` failed exit code: 2 gyp err! stack @ childprocess.onexit (/home/fernando/apps/node-v0.12.2/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23) gyp err! stack @ childprocess.emit (events.js:110:17) gyp err! stack @ process.childprocess._handle.onexit (child_process.js:1074:12) gyp err! system linux 3.13.0-53-generic gyp err! command "node" "/home/fernando/apps/node-v0.12.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp err! cwd /home/fernando/node_modules/nodetime-native gyp err! node -v v0.12.2 gyp err! node-gyp -v v1.0.3 gyp err! not ok npm err! linux 3.13.0-53-generic npm err! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "nodetime-native" npm err! node v0.12.2 npm err! npm v2.7.4 npm err! code elifecyclenpm err! nodetime-native@0.1.0 install:
node-gyp rebuild
npm err! exit status 1 npm err! npm err! failed @ nodetime-native@0.1.0 install script 'node-gyp rebuild'. npm err! problem nodetime-native package, npm err! not npm itself. npm err! tell author fails on system: npm err! node-gyp rebuild npm err! can info via: npm err! npm owner ls nodetime-native npm err! there additional logging output above.
looking around, seem need have python installed, (both 2.7 , 3.4) , make , gcc, do. else happening here?
you need make sure python executable reach via path environment variable leads 2.x version.
i believe node-gyp isn't working 3.x version of python.
Comments
Post a Comment