Error Install etherumjs-wallet with npm for ionic app

0

npm i ethereumjs-wallet

  

[email protected] preinstall / root / development / LydianID / LydianID-poc / node_modules / scrypt   node node-scrypt-preinstall.js

Error: Error: Command failed: ./configure configure: error: in /root/development/LydianID/LydianID-poc/node_modules/scrypt/scrypt/scrypt-1.2.0': configure: error: C compiler cannot create executables See config.log 'for more details

  

[email protected] install / root / development / LydianID / LydianID-poc / node_modules / scrypt   node-gyp rebuild

make: Entering directory '/ root / development / LydianID / LydianID-poc / node_modules / scrypt / build'   SOLINK_MODULE (target) Release / obj.target / copied_files.node / usr / bin / ld: can not find -lgcc_s collect2: error: ld returned 1 exit status copied_files.target.mk:22: recipe for target 'Release / obj.target / copied_files.node' failed make: *** [Release / obj.target / copied_files.node] Error 1 make: Leaving directory '/ root / development / LydianID / LydianID-poc / node_modules / scrypt / build' gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23) gyp ERR! stack at emitTwo (events.js: 125: 13) gyp ERR! stack at ChildProcess.emit (events.js: 213: 7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal / child_process.js: 197: 12) gyp ERR! System Linux 4.6.0-kali1-amd64 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 / root / development / LydianID / LydianID-poc / node_modules / scrypt gyp ERR! node -v v8.1.3 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules / fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os": "darwin", "arch": "any"} (current: {"os": "linux", "arch": "x64"})

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! /root/.npm/_logs/2018-07-10T10_16_15_739Z-debug.log

My npm and node version. npm 6.1.0 node 8.1.3

I have used the library on other projects and now I start a new project and I have this error.

    
asked by Josep Roman 10.07.2018 в 12:44
source

0 answers