2017-09-17 11 views
0

Ich versuche, node.js serialport-Paket zu verwenden, aber es gibt einige Fehler, die ich nicht verstehe.npm Fehler beim Installieren von Serialport

zu vereinfachen, beginne ich ein klares Verzeichnis ‚test‘ bilden, und ich erstellen Sie eine neue App:

sudo npm init

Dann versuche ich, Serialport zu installieren:

sudo npm install serialport --save

aber ich habe diese bekam Fehler:

[email protected] install /*********/test/node_modules/serialport node-pre-gyp install --fallback-to-build

env: node: No such file or directory npm WARN [email protected] No description npm WARN [email protected] No repository field.

npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the [email protected] install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/myUser/.npm/_logs/2017-09-17T20_33_23_435Z-debug.log

ich habe mit anderen Versionen, klarem npm Cache tryed und anderen seltsamen Dingen, aber ich bekomme keine solu tion.

Versionen: OSX 10.8.5 Knoten -v: v8.4.0

Dank!

Antwort

Verwandte Themen