I am trying to do tutorial at "Using Raspberry Pi with MODE" at "Getting Started" chapter.
I am using our i.MX6 board instead of Raspberry Pi.
I already installed node.js on the board. i.MX6 runs on linux 3.10.17.
When I do "npm install", following error is occured.
I think your firmware of Raspberry Pi includes "onoff" and "mode-device" library.
Could you please disclose their code or give me any advise ?
npm WARN package.json email@example.com No description
npm WARN package.json firstname.lastname@example.org No repository field.
npm WARN package.json email@example.com No README data
npm WARN package.json firstname.lastname@example.org No license field.
email@example.com install /home/root/node_modules/onoff/node_modules/epoll
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: certificate is not yet valid
gyp ERR! stack at Error (native)
gyp ERR! stack at TLSSocket. (tlswrap.js:936:36)
gyp ERR! stack at TLSSocket.emit (events.js:104:17)
gyp ERR! stack at TLSSocket.finishInit (tls_wrap.js:467:8)
gyp ERR! System Linux 3.10.17-1.0.0_ga+g232293e
gyp ERR! command "node" "/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/root/node_modules/onoff/node_modules/epoll
gyp ERR! node -v v0.12.8
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm ERR! Linux 3.10.17-1.0.0_ga+g232293e
npm ERR! argv "/bin/node" "/bin/npm" "install"
npm ERR! node v0.12.8
npm ERR! npm v2.14.9
npm ERR! code ELIFECYCLE
npm ERR! firstname.lastname@example.org install:
npm ERR! Exit status 1
npm ERR! Failed at the email@example.com install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the epoll 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 their info via:
npm ERR! npm owner ls epoll
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/root/npm-debug.log