question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug in 'node-pre-gyp' while using any command on Snappy Ubuntu Core on Raspberry PI 2

See original GitHub issue

Running 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:closed
  • Created 7 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
kerryChen95commented, Feb 13, 2017

@KayBeSee I just add below codes as webpack doc describes, it matches my case.

module: {
  // Disable handling of requires with a single expression
  exprContextRegExp: /$^/,
  exprContextCritical: false,
  // Disable handling of requires with expression wrapped by string,
  wrappedContextRegExp: /$^/,
  wrappedContextCritical: false,
}
0reactions
religncommented, Sep 6, 2018

ContextReplacementPlugin not support these options

Read more comments on GitHub >

github_iconTop Results From Across the Web

Snappy Ubuntu Core on Raspberry Pi 2
“Snappy Ubuntu Core on Raspberry Pi 2 is the ideal foundation for developers to build Snappy Apps and share them with others via...
Read more >
node-pre-gyp - npm
Node.js native addon binary install tool. Latest version: 0.17.0, last published: 2 years ago. Start using node-pre-gyp in your project by ...
Read more >
How to install a desktop on Ubuntu Snappy Core 15.04?
Snappy Ubuntu core is definitely an option of your want to load Ubuntu on Raspberry Pi 2. However, Snappy Ubuntu uses a different...
Read more >
Bug #1843589 “core snap stuck refreshing” : Bugs : Snappy
All of our snaps stopped working overnight, attempting to run the snap gives the following error: cannot locate base snap core: No such...
Read more >
Snappy Ubuntu Core + uNabto - Nabto
As you will quickly notice, Ubuntu Core is available for quite a number of devices although only the Raspberry Pi 2 is supported...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found