Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPM install failing on Ubuntu Core installed on Dragonboard 410c #777

Open
gruutak opened this issue Jun 30, 2017 · 4 comments
Open

NPM install failing on Ubuntu Core installed on Dragonboard 410c #777

gruutak opened this issue Jun 30, 2017 · 4 comments

Comments

@gruutak
Copy link

gruutak commented Jun 30, 2017

Hi, I'm trying to run npm install mraa on my Dragonboard 410c and it's failing.
Ubuntu Core version: 16.04

Log:

../src/mraa.c: In function ‘imraa_init’:
../src/mraa.c:154:2: error: #error mraa_ARCH NOTHING
#error mraa_ARCH NOTHING
^
mraa.target.mk:136: recipe for target 'Release/obj.target/mraa/src/mraa.o' failed
make: *** [Release/obj.target/mraa/src/mraa.o] Error 1
make: Leaving directory '/home/gruutak/TARCplusplus-iot/node_modules/mraa/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.4.0-1054-snapdragon
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/gruutak/TARCplusplus-iot/node_modules/mraa
gyp ERR! node -v v6.11.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok

@arfoll
Copy link
Contributor

arfoll commented Jun 30, 2017 via email

@gruutak
Copy link
Author

gruutak commented Jun 30, 2017

Done. It installed successfully. But how can I proceed to use it in node since it isn't able to find the module?

@Propanu
Copy link
Contributor

Propanu commented Jun 30, 2017

Set NODE_PATH to the install location before running node (e.g. NODE_PATH=/usr/local/lib/node_modules).

@gruutak
Copy link
Author

gruutak commented Jul 1, 2017

It worked! Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants