devsnek/node-wasi

Failure to install on Node 12.4.0

Closed this issue · 0 comments

david@david-Latitude-E6440:/tmp/wup/node-wasi$ npm install

> wasi@0.0.5 install /tmp/wup/node-wasi
> node-gyp rebuild

make: Entering directory '/tmp/wup/node-wasi/build'
  CXX(target) Release/obj.target/wasi/src/binding.o
../src/binding.cc:95:36: error: extra ‘;’ [-Werror=pedantic]
 NAPI_MODULE(wasi, node::wasi::Init);
                                    ^
cc1plus: all warnings being treated as errors
make: *** [wasi.target.mk:127: Release/obj.target/wasi/src/binding.o] Error 1
make: Leaving directory '/tmp/wup/node-wasi/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/david/.nvm/versions/node/v12.4.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:200:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 5.0.0-15-generic
gyp ERR! command "/home/david/.nvm/versions/node/v12.4.0/bin/node" "/home/david/.nvm/versions/node/v12.4.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /tmp/wup/node-wasi
gyp ERR! node -v v12.4.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! wasi@0.0.5 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the wasi@0.0.5 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!     /home/david/.npm/_logs/2019-06-20T21_42_00_599Z-debug.log