Hello,
I have a problem to update pimatic-smartmeter with npm.
This error message appears:
> serialport@2.1.2 install /home/pimatic-app/node_modules/pimatic-smartmeter/node_modules/serialport
> node-pre-gyp install --fallback-to-build
module.js:340
throw err;
^
Error: Cannot find module 'nopt'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/home/pimatic-app/node_modules/pimatic-smartmeter/node_modules/serialport/node_modules/node-pre-gyp/lib/node-pre-gyp.js:14:12)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
npm ERR! serialport@2.1.2 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the serialport@2.1.2 install script.
npm ERR! This is most likely a problem with the serialport package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR! npm owner ls serialport
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.1.13+
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "pimatic-smartmeter"
npm ERR! cwd /home/pimatic-app
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/pimatic-app/npm-debug.log
npm ERR! not ok code 0
pi@raspberrypi /home/pimatic-app $ gyp install --fallback-to-build
-bash: gyp: Kommando nicht gefunden.
pi@raspberrypi /home/pimatic-app $ npm ERR! You can get their info via:
gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR! n
Usage: npm <command>
where <command> is one of:
add-user, adduser, apihelp, author, bin, bugs, c, cache,
completion, config, ddp, dedupe, deprecate, docs, edit,
explore, faq, find, find-dupes, get, help, help-search,
home, i, info, init, install, isntall, issues, la, link,
list, ll, ln, login, ls, outdated, owner, pack, prefix,
prune, publish, r, rb, rebuild, remove, repo, restart, rm,
root, run-script, s, se, search, set, show, shrinkwrap,
star, stars, start, stop, submodule, tag, test, tst, un,
uninstall, unlink, unpublish, unstar, up, update, v,
version, view, whoami
npm <cmd> -h quick help on <cmd>
npm -l display full usage info
npm faq commonly asked questions
npm help <term> search for help on <term>
npm help npm involved overview
Specify configs in the ini-formatted file:
/home/pi/.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config
npm@1.3.21 /usr/local/lib/node_modules/npm
Maybe someone can help me.
Regards Andre