Bitcoinjs-lib: npm install error under bitcoinjs-lib folder

Created on 4 Jul 2018  路  2Comments  路  Source: bitcoinjs/bitcoinjs-lib

> [email protected] install D:\****\js\bitcoinjs-lib\node_modules\bip32\node_modules\tiny-secp256k1
> node-gyp rebuild


D:\****\js\bitcoinjs-lib\node_modules\bip32\node_modules\tiny-secp256k1>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )

D:\****\js\bitcoinjs-lib\node_modules\bip32\node_modules\tiny-secp256k1\build\secp256k1.vcxproj(20,3): error MSB4019: can't import  D:\Microsoft.Cpp.Default.
props
 <Import> path error or file don't exist
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\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:258:23)
gyp ERR! stack     at emitTwo (events.js:126:13)
gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! 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:\****\js\bitcoinjs-lib\node_modules\bip32\node_modules\tiny-secp256k1
gyp ERR! node -v v8.11.2
gyp ERR! node-gyp -v v3.6.2
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 install error under bitcoinjs-lib folder锛宨s this normal or how to fix it .
thanks

how to / question / docs

Most helpful comment

https://github.com/cryptocoinjs/secp256k1-node#windows should work for tiny-secp256k1 too.

All 2 comments

https://github.com/cryptocoinjs/secp256k1-node#windows should work for tiny-secp256k1 too.

@fanatid I linked to secp256k1-node instructions over at tiny-secp256k1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hoshsadiq picture hoshsadiq  路  3Comments

tuyennvtb picture tuyennvtb  路  3Comments

ghost picture ghost  路  3Comments

silence-may picture silence-may  路  3Comments

askucher picture askucher  路  3Comments