Answer the question
In order to leave comments, you need to log in
Error when trying to install a specific node.js package?
All the best evening. When trying to install the bitcoinjs-lib package, an error occurs:
C:\Users\Leonid\Desktop\Node.js work(dogecoin network)>npm i bitcoinjs-lib
> [email protected] install C:\Users\Leonid\ Desktop\Node.js work(dogecoin network)\node_modules\tiny-secp256k1
> node-gyp rebuild
C:\Users\Leonid\Desktop\Node.js work(dogecoin network)\node_modules\tiny-secp256k1>if not defined npm_config_node_gyp ( node "C:\Users\Leonid\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp. js" rebuild ) else (node "C:\Users\Leonid\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Users\Leonid\AppData\Local\Programs\Python\Python37-32\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:289:12)
gyp ERR! stack at ChildProcess.emit(events.js:182:13)
gyp ERR! stack at maybeClose (internal/child_process.js:962:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Leonid\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\ \bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Leonid\Desktop\Node.js work(dogecoin network)\node_modules\tiny-secp256k1
gyp ERR! node -v v10.12.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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! C:\Users\Leonid\AppData\Roaming\npm-cache\_logs\2018-10-24T18_16_05_468Z-debug.log
In general. tried everything
Answer the question
In order to leave comments, you need to log in
Python version incompatibility. The third python can't do that - print "%s.%s.%s". On what the script also swears. The decision in the forehead is to put the 2nd python. The correct solution is to find node-gyp for the 3rd python and somehow shove it (I haven’t found it yet).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question