2016-07-09 21 views
1

Ich versuche, ein reaktives natives Starterkit (Ignite) auf Ubuntu 14.04.4 zu installieren und weiterhin spawn-sync nach der Installation fehlschlägt.spawn-sync Post-Installation schlägt fehl während Reactive native Starterkit Installation unter Ubuntu

Früher gab es EACCESS Problem, und ich regelte es, indem sie in diesem Video folgenden Befehl,

https://docs.npmjs.com/getting-started/fixing-npm-permissions

Knoten Version - V6.3.0 npm Version - 3.10.3 Ignite - https://github.com/infinitered/ignite

Wenn ich global zünden versuche, erhalte ich folgende Fehlermeldung:

npm WARN deprecated [email protected]: cross-spawn no longer  requires a build toolchain, use it instead! 
npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm 
/root/.npm-global/bin/ignite -> /root/.npm-global/lib/node_modules/react-native-ignite/index.js 

[email protected] postinstall /root/.npm-global/lib/node_modules/react-native-ignite/node_modules/spawn-sync 
node postinstall 
module.js:442 
throw err; 
^ 

Error: Cannot find module '/root/.npm-global/lib/node_modules/react- native-ignite/node_modules/spawn-sync/postinstall' 
at Function.Module._resolveFilename (module.js:440:15) 
at Function.Module._load (module.js:388:25) 
at Module.runMain (module.js:575:10) 
at run (bootstrap_node.js:352:7) 
at startup (bootstrap_node.js:144:9) 
at bootstrap_node.js:467:3 
/root/.npm-global/lib 
`-- (empty) 

npm ERR! Linux 4.2.0-41-generic 
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "react- native-ignite" 
npm ERR! node v6.3.0 
npm ERR! npm v3.10.3 
npm ERR! code ELIFECYCLE 

npm ERR! [email protected] postinstall: node postinstall 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script 'node postinstall'. 
npm ERR! Make sure you have the latest version of node.js and npm installed. 
npm ERR! If you do, this is most likely a problem with the spawn-sync package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR! node postinstall 
npm ERR! You can get information on how to open an issue for this project with: 
npm ERR! npm bugs spawn-sync 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR! npm owner ls spawn-sync 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR! /home/sith/react/myapplication/npm-debug.log 
npm ERR! code 1 

Antwort

1

Ich folgte der npm Erlaubnis Anweisung Video für den normalen Benutzer und das löste mein Problem. Früher habe ich das mit Root-Benutzer versucht und das hat nicht gut für mich funktioniert.