5 Replies Latest reply on Nov 23, 2016 12:51 PM by Intel Corporation

    node-gyp rebuild error on Joule

    welcomesorrow

      Having problems in running simple sample codes such as LED blinking and Grove LCD display from Intel XDK IoT Edition on Windows 10.

       

      I have refreshed the Ostro XT. This is the last part of error messages, suggesting that it is failing at node-gyp reguild command.

       

      npm ERR! Linux 4.4.15-yocto-standard
      npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "rebuild"
      npm ERR! node v4.4.1
      npm ERR! npm  v2.14.20
      npm ERR! code ELIFECYCLE
      npm ERR! mraa@0.7.5 install: `node-gyp rebuild`
      npm ERR! Exit status 1
      npm ERR!
      npm ERR! Failed at the mraa@0.7.5 install script 'node-gyp rebuild'.
      npm ERR! This is most likely a problem with the mraa package,
      npm ERR! not with npm itself.
      npm ERR! Tell the author that this fails on your system:
      npm ERR!     node-gyp rebuild
      npm ERR! You can get information on how to open an issue for this project with:
      npm ERR!     npm bugs mraa
      npm ERR! Or if that isn't available, you can get their info via:
      npm ERR!
      npm ERR!     npm owner ls mraa
      npm ERR! There is likely additional logging output above.

      npm ERR! Please include the following file with any support request:
      npm ERR!     /home/root/.node_app_slot/npm-debug.log
      rebuild complete
      Upload Complete
      Not auto starting by request

       

       

      I checked if node-gyp is installed and found it is not. So, I did the following:

       

      npm install -g node-gyp

       

      And now, Joule gives me this.

       

      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:87:13)
      gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
      gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
      gyp ERR! System Linux 4.4.15-yocto-standard
      gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
      gyp ERR! cwd /home/root/.node_app_slot/node_modules/mraa
      gyp ERR! node -v v4.4.1
      gyp ERR! node-gyp -v v3.3.0
      gyp ERR! not ok

      npm ERR! Linux 4.4.15-yocto-standard
      npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "rebuild"
      npm ERR! node v4.4.1
      npm ERR! npm  v2.14.20
      npm ERR! code ELIFECYCLE
      npm ERR! mraa@0.7.5 install: `node-gyp rebuild`
      npm ERR! Exit status 1
      npm ERR!
      npm ERR! Failed at the mraa@0.7.5 install script 'node-gyp rebuild'.
      npm ERR! This is most likely a problem with the mraa package,
      npm ERR! not with npm itself.
      npm ERR! Tell the author that this fails on your system:
      npm ERR!     node-gyp rebuild
      npm ERR! You can get information on how to open an issue for this project with:
      npm ERR!     npm bugs mraa
      npm ERR! Or if that isn't available, you can get their info via:
      npm ERR!
      npm ERR!     npm owner ls mraa
      npm ERR! There is likely additional logging output above.

      npm ERR! Please include the following file with any support request:
      npm ERR!     /home/root/.node_app_slot/npm-debug.log
      rebuild complete
      Upload Complete
      Not auto starting by request

       

      What can I do now? Perhaps uninstall/reinstall node and node-gyp with the same version number?

       

      Thanks,

      sorrow