Bug in 'node-pre-gyp' while using any command on Snappy Ubuntu Core on Raspberry PI 2
See original GitHub issueRunning Snappy Ubuntu Core on Raspberry pi 2 Model B with ARMv7 processor. I am trying to use ‘node-pre-gyp install --fallback-to-build’ after downloading the node-pre-gyp module, which is used for installing the serialport module. However the following error show up after attempts at using any command such as ‘node-pre-gyp install’ or ‘node-pre-gyp info’.
`ubuntu@ubuntu:~$ node-pre-gyp info
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.6.30
node-pre-gyp info using node@4.5.0 | linux | arm
node-pre-gyp ERR! UNCAUGHT EXCEPTION
node-pre-gyp ERR! stack Error: Cannot find module ‘aws-sdk’
node-pre-gyp ERR! stack at Function.Module._resolveFilename (module.js:325:15)
node-pre-gyp ERR! stack at Function.Module._load (module.js:276:25)
node-pre-gyp ERR! stack at Module.require (module.js:353:17)
node-pre-gyp ERR! stack at require (internal/module.js:12:17)
node-pre-gyp ERR! stack at unpublish (/usr/local/lib/node_modules/node-pre-gyp/lib/info.js:14:15)
node-pre-gyp ERR! stack at Object.self.commands.(anonymous function) as info
node-pre-gyp ERR! stack at run (/usr/local/lib/node_modules/node-pre-gyp/bin/node-pre-gyp:79:30)
node-pre-gyp ERR! stack at Object.<anonymous> (/usr/local/lib/node_modules/node-pre-gyp/bin/node-pre-gyp:131:1)
node-pre-gyp ERR! stack at Module._compile (module.js:409:26)
node-pre-gyp ERR! stack at Object.Module._extensions…js (module.js:416:10)
node-pre-gyp ERR! System Linux 4.4.0-1023-raspi2
node-pre-gyp ERR! command “/usr/local/bin/node” “/usr/local/bin/node-pre-gyp” “info”
node-pre-gyp ERR! cwd /home/ubuntu
node-pre-gyp ERR! node -v v4.5.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.30
node-pre-gyp ERR! This is a bug in node-pre-gyp.
node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help:
node-pre-gyp ERR! https://github.com/mapbox/node-pre-gyp/issues`
Thanks for any help!
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (2 by maintainers)

Top Related StackOverflow Question
@KayBeSee I just add below codes as webpack doc describes, it matches my case.
ContextReplacementPluginnot support these options