Welllllll, it just might be. Do me a favor and check the following.
I've tried reinstalling node from homebrew, and have cleaned out ~/.node and ~/.npm
Then when it fails to install a specific module, i try to install that individually, and eventually end up in the same place:
Here's the command line output: (Problem with duplexer so I install that directly sudo npm install -g duplexer
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "-g" "generator-react-native-ignite"
npm ERR! node v6.2.2
npm ERR! npm v3.8.6
npm ERR! path /Users/selly/.npm/duplexer2/0.0.2/package.tgz.868533109
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall open
npm ERR! Error: EACCES: permission denied, open '/Users/selly/.npm/duplexer2/0.0.2/package.tgz.868533109'
npm ERR! at Error (native)
npm ERR! { Error: EACCES: permission denied, open '/Users/selly/.npm/duplexer2/0.0.2/package.tgz.868533109'
npm ERR! at Error (native)
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'open',
npm ERR! path: '/Users/selly/.npm/duplexer2/0.0.2/package.tgz.868533109',
npm ERR! parent: 'multipipe' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /usr/local/lib/node_modules/react-native-ignite/npm-debug.log
/usr/local/lib
โโโ (empty)
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "react-native-ignite"
npm ERR! node v6.2.2
npm ERR! npm v3.8.6
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: npm i -g generator-react-native-ignite
npm ERR! Exit status 243
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'npm i -g generator-react-native-ignite'.
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 react-native-ignite package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm i -g generator-react-native-ignite
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs react-native-ignite
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls react-native-ignite
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/selly/npm-debug.log
Then I get this
[email protected] postinstall /usr/local/lib/node_modules/react-native-ignite
npm i -g generator-react-native-ignite
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/generator-react-native-ignite
/usr/local/lib
โโโ [email protected]
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "-g" "generator-react-native-ignite"
npm ERR! node v6.2.2
npm ERR! npm v3.8.6
npm ERR! path /usr/local/lib/node_modules/generator-react-native-ignite
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules/generator-react-native-ignite'
npm ERR! at Error (native)
npm ERR! { Error: EACCES: permission denied, access '/usr/local/lib/node_modules/generator-react-native-ignite'
npm ERR! at Error (native)
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib/node_modules/generator-react-native-ignite' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /usr/local/lib/node_modules/react-native-ignite/npm-debug.log
/usr/local/lib
โโโ (empty)
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "react-native-ignite"
npm ERR! node v6.2.2
npm ERR! npm v3.8.6
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: npm i -g generator-react-native-ignite
npm ERR! Exit status 243
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'npm i -g generator-react-native-ignite'.
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 react-native-ignite package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm i -g generator-react-native-ignite
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs react-native-ignite
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls react-native-ignite
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/selly/npm-debug.log
npm ERR! code 1
jarvis:~ selly$
But then you take a look (i've already chmod777'ed it):
jarvis:~ selly$ ll /usr/local/lib/node_modules/
total 0
drwxrwxrwx 7 selly wheel 238B Jun 30 11:35 .
Then I get something like this sometimes:
``
Here's the error I'm getting at the end of npm-debug.log:
56447 silly lifecycle [email protected]~postinstall: Args: [ '-c', 'npm i -g generator-react-native-ignite' ]
56448 silly lifecycle [email protected]~postinstall: Returned: code: 243 signal: null
56449 info lifecycle [email protected]~postinstall: Failed to exec postinstall script
56450 verbose unlock done using /Users/selly/.npm/_locks/staging-3a08f0df5026584d.lock for /usr/local/lib/node_modules/.staging
56451 silly rollbackFailedOptional Starting
56452 silly rollbackFailedOptional Finishing
56453 silly runTopLevelLifecycles Starting
56454 silly runTopLevelLifecycles Finishing
56455 silly install printInstalled
56456 verbose stack Error: [email protected] postinstall: npm i -g generator-react-native-ignite
56456 verbose stack Exit status 243
56456 verbose stack at EventEmitter.
56456 verbose stack at emitTwo (events.js:106:13)
56456 verbose stack at EventEmitter.emit (events.js:191:7)
56456 verbose stack at ChildProcess.
56456 verbose stack at emitTwo (events.js:106:13)
56456 verbose stack at ChildProcess.emit (events.js:191:7)
56456 verbose stack at maybeClose (internal/child_process.js:852:16)
56456 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
56457 verbose pkgid [email protected]
56458 verbose cwd /Users/selly
56459 error Darwin 14.5.0
56460 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "react-native-ignite"
56461 error node v6.2.2
56462 error npm v3.8.6
56463 error code ELIFECYCLE
56464 error [email protected] postinstall: npm i -g generator-react-native-ignite
56464 error Exit status 243
56465 error Failed at the [email protected] postinstall script 'npm i -g generator-react-native-ignite'.
56465 error Make sure you have the latest version of node.js and npm installed.
56465 error If you do, this is most likely a problem with the react-native-ignite package,
56465 error not with npm itself.
56465 error Tell the author that this fails on your system:
56465 error npm i -g generator-react-native-ignite
56465 error You can get information on how to open an issue for this project with:
56465 error npm bugs react-native-ignite
56465 error Or if that isn't available, you can get their info via:
56465 error npm owner ls react-native-ignite
56465 error There is likely additional logging output above.
56466 verbose exit [ 1, true ]
``
FWIW I've installed locally successfully, but can't install globally.
Also having the same issues installing globally, fails during react-native-ignite postinstall
+1
Tried install with sudo;
Error: EACCES: permission denied, open '/Users/sercan/.npm/concat-map/0.0.1/package.tgz.2699858483'
i managed to fix this issue by following this guide:
https://docs.npmjs.com/getting-started/fixing-npm-permissions
I was just about to suggest that exact same video. Cheers @michan85 !
I did half of this (the "node_modules" directory) but will try again and keep you posted. Thanks @michan85 @GantMan
Is there a way we can detect this @GantMan and display a more friendly error message?
I'm sure we can. Might want to create a ticket @jamonholmgren
Followed the directions at https://docs.npmjs.com/getting-started/fixing-npm-permissions
But this doesn't solve the problem for me.
Trying npm -g install react-native-ignite
Gives the following including errors:
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
/var/root/.npm-global/bin/ignite -> /var/root/.npm-global/lib/node_modules/react-native-ignite/index.js
[email protected] postinstall /var/root/.npm-global/lib/node_modules/react-native-ignite/node_modules/spawn-sync
node postinstall[email protected] postinstall /var/root/.npm-global/lib/node_modules/react-native-ignite/node_modules/yo
yodoctor
Yeoman Doctor
Running sanity checks on your system
โ Global configuration file is valid
โ NODE_PATH matches the npm root
โ Node.js version
โ No .bowerrc file in home directory
โ No .yo-rc.json file in home directory
โ npm version
Everything looks all right!
[email protected] postinstall /var/root/.npm-global/lib/node_modules/react-native-ignite
npm i -g generator-react-native-ignite
npm WARN checkPermissions Missing write access to /var/root/.npm-global/lib/node_modules
/var/root/.npm-global/lib
โโโ [email protected]
npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "-g" "generator-react-native-ignite"
npm ERR! node v4.4.5
npm ERR! npm v3.10.3
npm ERR! path /var/root/.npm-global/lib/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/var/root/.npm-global/lib/node_modules'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES: permission denied, access '/var/root/.npm-global/lib/node_modules']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/var/root/.npm-global/lib/node_modules' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /private/var/root/.npm-global/lib/node_modules/react-native-ignite/npm-debug.log
/var/root/.npm-global/lib
โโโ (empty)
npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "-g" "install" "react-native-ignite"
npm ERR! node v4.4.5
npm ERR! npm v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: npm i -g generator-react-native-ignite
npm ERR! Exit status 243
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'npm i -g generator-react-native-ignite'.
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 react-native-ignite package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm i -g generator-react-native-ignite
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs react-native-ignite
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls react-native-ignite
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /usr/local/lib/npm-debug.log
npm ERR! code 1
However if I try npm i -g generator-react-native-ignite it appears to work, but Ignite isn't installed correctly.
-sh: ignite: command not found
[email protected] postinstall /var/root/.npm-global/lib/node_modules/generator-react-native-ignite/node_modules/spawn-sync
node postinstall
/var/root/.npm-global/lib
โโโฌ [email protected]
โโโ [email protected]
โโโฌ [email protected]
โ โโโฌ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโฌ [email protected]
โ โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โโโฌ [email protected]
โ โ โโโฌ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โโโ [email protected]
โ โโโ [email protected]
โโโ [email protected]
โโโ [email protected]
โโโ [email protected]
โโโฌ [email protected]
โโโ [email protected]
โโโฌ [email protected]
โ โโโ [email protected]
โโโฌ [email protected]
โ โโโ [email protected]
โโโฌ [email protected]
โ โโโฌ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โโโฌ [email protected]
โ โโโ [email protected]
โโโฌ [email protected]
โ โโโ [email protected]
โโโฌ [email protected]
โ โโโ [email protected]
โ โโโฌ [email protected]
โ โโโฌ [email protected]
โ โ โโโ [email protected]
โ โโโ [email protected]
โ โโโฌ [email protected]
โ โ โโโฌ [email protected]
โ โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โโโ [email protected]
โ โโโ [email protected]
โ โโโฌ [email protected]
โ โ โโโ [email protected]
โ โ โโโฌ [email protected]
โ โ โ โโโ [email protected]
โ โ โโโฌ [email protected]
โ โ โโโฌ [email protected]
โ โ โ โโโ [email protected]
โ โ โโโฌ [email protected]
โ โ โโโ [email protected]
โ โโโฌ [email protected]
โ โ โโโฌ [email protected]
โ โ โ โโโฌ [email protected]
โ โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โโโ [email protected]
โโโฌ [email protected]
โ โโโ [email protected]
โโโ [email protected]
โโโฌ [email protected]
โ โโโฌ [email protected]
โ โ โโโฌ [email protected]
โ โ โ โโโฌ [email protected]
โ โ โ โโโ [email protected]
โ โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โโโฌ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โโโฌ [email protected]
โ โ โโโ [email protected]
โ โโโฌ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โโโฌ [email protected]
โ โ โโโฌ [email protected]
โ โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโฌ [email protected]
โ โ โ โโโฌ [email protected]
โ โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโฌ [email protected]
โ โ โโโ [email protected]
โ โโโฌ [email protected]
โ โ โโโฌ [email protected]
โ โ โ โโโ [email protected]
โ โ โโโฌ [email protected]
โ โ โ โโโฌ [email protected]
โ โ โ โ โโโ [email protected]
โ โ โ โโโฌ [email protected]
โ โ โ โ โโโ [email protected]
โ โ โ โ โโโ [email protected]
โ โ โ โ โโโฌ [email protected]
โ โ โ โ โ โโโฌ [email protected]
โ โ โ โ โ โ โโโ [email protected]
โ โ โ โ โ โโโ [email protected]
โ โ โ โ โ โโโ [email protected]
โ โ โ โ โโโฌ [email protected]
โ โ โ โ โ โโโฌ [email protected]
โ โ โ โ โ โ โโโ [email protected]
โ โ โ โ โ โโโ [email protected]
โ โ โ โ โโโฌ [email protected]
โ โ โ โ โ โโโฌ [email protected]
โ โ โ โ โ โโโ [email protected]
โ โ โ โ โโโฌ [email protected]
โ โ โ โ โโโ [email protected]
โ โ โ โโโฌ [email protected]
โ โ โ โ โโโ [email protected]
โ โ โ โ โโโ [email protected]
โ โ โ โ โโโฌ [email protected]
โ โ โ โ โ โโโฌ [email protected]
โ โ โ โ โ โโโ [email protected]
โ โ โ โ โโโฌ [email protected]
โ โ โ โ โ โโโฌ [email protected]
โ โ โ โ โ โโโ [email protected]
โ โ โ โ โโโฌ [email protected]
โ โ โ โ โโโ [email protected]
โ โ โ โโโฌ [email protected]
โ โ โ โ โโโ [email protected]
โ โ โ โ โโโ [email protected]
โ โ โ โ โโโฌ [email protected]
โ โ โ โ โ โโโฌ [email protected]
โ โ โ โ โ โโโ [email protected]
โ โ โ โ โโโฌ [email protected]
โ โ โ โ โโโ [email protected]
โ โ โ โโโฌ [email protected]
โ โ โ โ โโโ [email protected]
โ โ โ โ โโโ [email protected]
โ โ โ โ โโโฌ [email protected]
โ โ โ โ โโโ [email protected]
โ โ โ โ โโโฌ [email protected]
โ โ โ โ โโโ [email protected]
โ โ โ โโโ [email protected]
โ โ โโโฌ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโฌ [email protected]
โ โ โ โโโ [email protected]
โ โ โโโฌ [email protected]
โ โ โ โโโ [email protected]
โ โ โโโฌ [email protected]
โ โ โ โโโ [email protected]
โ โ โโโ lodash.[email protected]
โ โ โโโ lodash.[email protected]
โ โ โโโ lodash.[email protected]
โ โ โโโฌ lodash.[email protected]
โ โ โ โโโ lodash.[email protected]
โ โ โ โโโ lodash.[email protected]
โ โ โ โโโ lodash.[email protected]
โ โ โ โโโ lodash.[email protected]
โ โ โ โโโ lodash.[email protected]
โ โ โ โโโฌ lodash.[email protected]
โ โ โ โ โโโ lodash.[email protected]
โ โ โ โ โโโ lodash.[email protected]
โ โ โ โ โโโ lodash.[email protected]
โ โ โ โโโ lodash.[email protected]
โ โ โ โโโ lodash.[email protected]
โ โ โโโฌ [email protected]
โ โ โ โโโฌ [email protected]
โ โ โ โโโฌ [email protected]
โ โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โโโ [email protected]
โ โโโ [email protected]
โ โโโ [email protected]
โ โโโฌ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โโโ [email protected]
โ โโโฌ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โโโฌ [email protected]
โ โ โโโฌ [email protected]
โ โ โ โโโ [email protected]
โ โ โโโฌ [email protected]
โ โ โ โโโ [email protected]
โ โ โ โโโ [email protected]
โ โ โ โโโฌ [email protected]
โ โ โ โ โโโ [email protected]
โ โ โ โโโฌ [email protected]
โ โ โ โ โโโฌ [email protected]
โ โ โ โ โ โโโ [email protected]
โ โ โ โ โโโ [email protected]
โ โ โ โ โโโฌ [email protected]
โ โ โ โ โ โโโฌ [email protected]
โ โ โ โ โ โ โโโฌ [email protected]
โ โ โ โ โ โ โโโ [email protected]
โ โ โ โ โ โ โโโ [email protected]
โ โ โ โ โ โ โโโ [email protected]
โ โ โ โ โ โ โโโ [email protected]
โ โ โ โ โ โโโ [email protected]
โ โ โ โ โ โโโ [email protected]
โ โ โ โ โโโฌ [email protected]
โ โ โ โ โ โโโ [email protected]
โ โ โ โ โโโ [email protected]
โ โ โ โ โโโ [email protected]
โ โ โ โ โโโ [email protected]
โ โ โ โ โโโฌ [email protected]
โ โ โ โ โ โโโ [email protected]
โ โ โ โ โโโ [email protected]
โ โ โ โ โโโฌ object.[email protected]
โ โ โ โ โ โโโฌ [email protected]
โ โ โ โ โ โ โโโ [email protected]
โ โ โ โ โ โโโ [email protected]
โ โ โ โ โโโฌ [email protected]
โ โ โ โ โ โโโ [email protected]
โ โ โ โ โ โโโ [email protected]
โ โ โ โ โโโฌ [email protected]
โ โ โ โ โโโ [email protected]
โ โ โ โ โโโ [email protected]
โ โ โ โโโ [email protected]
โ โ โ โโโฌ [email protected]
โ โ โ โ โโโฌ [email protected]
โ โ โ โ โโโ [email protected]
โ โ โ โโโฌ [email protected]
โ โ โ โ โโโ [email protected]
โ โ โ โโโฌ [email protected]
โ โ โ โโโฌ [email protected]
โ โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโฌ [email protected]
โ โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโฌ lodash.[email protected]
โ โ โ โโโ lodash.[email protected]
โ โ โ โโโ lodash.[email protected]
โ โ โโโ [email protected]
โ โ โโโฌ [email protected]
โ โ โ โโโ [email protected]
โ โ โโโฌ [email protected]
โ โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โโโฌ [email protected]
โ โโโฌ [email protected]
โ โโโ [email protected]
โโโฌ [email protected]
โ โโโ [email protected]
โ โโโ [email protected]
โโโฌ [email protected]
โ โโโฌ [email protected]
โ โโโ [email protected]
โโโฌ [email protected]
โ โโโ [email protected]
โโโฌ [email protected]
โ โโโ fs.[email protected]
โ โโโฌ [email protected]
โ โ โโโ [email protected]
โ โโโ [email protected]
โ โโโฌ [email protected]
โ โ โโโฌ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โโโ [email protected]
โโโฌ [email protected]
โ โโโฌ [email protected]
โ โโโฌ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโฌ [email protected]
โ โ โ โโโ [email protected]
โ โ โ โโโ [email protected]
โ โ โ โโโ [email protected]
โ โ โ โโโ [email protected]
โ โ โ โโโ [email protected]
โ โ โ โโโ [email protected]
โ โ โโโฌ [email protected]
โ โ โโโ [email protected]
โ โโโ [email protected]
โ โโโ [email protected]
โโโฌ [email protected]
โ โโโฌ [email protected]
โ โ โโโฌ [email protected]
โ โ โ โโโ [email protected]
โ โ โ โโโ [email protected]
โ โ โ โโโ [email protected]
โ โ โ โโโ [email protected]
โ โ โโโฌ [email protected]
โ โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโฌ [email protected]
โ โ โ โโโ [email protected]
โ โ โ โโโ [email protected]
โ โ โ โโโ [email protected]
โ โ โ โโโ [email protected]
โ โ โ โโโฌ [email protected]
โ โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โโโ [email protected]
โโโฌ [email protected]
โ โโโ [email protected]
โ โโโ [email protected]
โโโ [email protected]
โโโฌ [email protected]
โ โโโ [email protected]
โ โโโ [email protected]
โ โโโ [email protected]
โ โโโฌ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โโโฌ [email protected]
โ โโโ [email protected]
โโโฌ [email protected]
โ โโโ [email protected]
โโโฌ [email protected]
โ โโโ [email protected]
โโโ [email protected]
โโโ [email protected]
โโโ [email protected]
โโโ [email protected]
โโโฌ [email protected]
โ โโโฌ [email protected]
โ โโโ [email protected]
โ โโโ [email protected]
โโโ [email protected]
โโโฌ [email protected]
โ โโโ [email protected]
โโโฌ [email protected]
โ โโโ [email protected]
โ โโโฌ [email protected]
โ โโโ [email protected]
โโโ [email protected]
โโโฌ [email protected]
โ โโโ [email protected]
โโโฌ underscore.[email protected]
โ โโโ [email protected]
โ โโโ [email protected]
โโโฌ [email protected]
โ โโโ [email protected]
โโโ [email protected]
โโโฌ [email protected]
โ โโโ [email protected]
โโโฌ [email protected]
โ โโโ [email protected]
โ โโโฌ [email protected]
โ โ โโโ [email protected]
โ โโโฌ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโฌ [email protected]
โ โ โ โโโฌ [email protected]
โ โ โ โ โโโ [email protected]
โ โ โ โโโฌ [email protected]
โ โ โ โโโ [email protected]
โ โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โ โโโฌ [email protected]
โ โ โ โโโ [email protected]
โ โ โ โโโ [email protected]
โ โ โโโ [email protected]
โ โโโ [email protected]
โ โโโฌ [email protected]
โ โ โโโฌ [email protected]
โ โ โโโฌ [email protected]
โ โ โโโ [email protected]
โ โโโ [email protected]
โโโฌ [email protected]
โ โโโฌ [email protected]
โ โโโ [email protected]
โ โโโ [email protected]
โ โโโ [email protected]
โ โโโ [email protected]
โโโ [email protected]
Yes, followed the instruction in the video but couldn't install ignite on Ubuntu 14.04.4. But I was able to globally install jshint as per the instruction in the video.
node version - v6.3.0
npm version - 3.10.3
When I try to globally install ignite, I am getting the following error,
`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
`
I followed the npm permission instruction video for the normal user and that solved my problem. Earlier I was trying this with root user and that didn't work well for me. Thank you!
It solved by following the option 1 in https://docs.npmjs.com/getting-started/fixing-npm-permissions
Option 2 worked for me on Ubuntu 14.04.
+1 on this issue, but I have a workaround/better practice solution. It all boils down to attempting to use npm as a system (root) package manager - DON'T. It breeds permission issues. Also, do you trust every postinstall script in the entire dependency tree to run as root? What you probably want is a user-specific NPM prefix for all your global installs to go under. That way, npm install -g actually works without sudo or janky security-breaking recursive chowns.
Here's how I fixed it:
$ mkdir '~/.local/share/npm-packages/'
$ npm config set prefix '~/.local/share/npm-packages/'
Add to ~/.bashrc or similar:
export PATH="$PATH:$HOME/.local/share/npm-packages/bin"
Now npm install -g react-native-ignite works!
For posterity, here's the exact issue I was seeing, even running under a root login shell:
root@tesla:/home/giacomo# npm install -g react-native-ignite
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
/usr/local/bin/ignite -> /usr/local/lib/node_modules/react-native-ignite/index.js
> [email protected] postinstall /usr/local/lib/node_modules/react-native-ignite/node_modules/spawn-sync
> node postinstall
> [email protected] postinstall /usr/local/lib/node_modules/react-native-ignite/node_modules/yo
> yodoctor
Yeoman Doctor
Running sanity checks on your system
โ Global configuration file is valid
โ NODE_PATH matches the npm root
โ Node.js version
โ No .bowerrc file in home directory
โ No .yo-rc.json file in home directory
โ npm version
Everything looks all right!
> [email protected] postinstall /usr/local/lib/node_modules/react-native-ignite
> npm i -g generator-react-native-ignite
npm ERR! Linux 4.4.0-31-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "i" "-g" "generator-react-native-ignite"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! path /root/.npm/generator-react-native-ignite/1.3.2/package
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall mkdir
npm ERR! Error: EACCES: permission denied, mkdir '/root/.npm/generator-react-native-ignite/1.3.2/package'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES: permission denied, mkdir '/root/.npm/generator-react-native-ignite/1.3.2/package']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/root/.npm/generator-react-native-ignite/1.3.2/package' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /usr/local/lib/node_modules/react-native-ignite/npm-debug.log
/usr/local/lib
โโโ (empty)
npm ERR! Linux 4.4.0-31-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "react-native-ignite"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: `npm i -g generator-react-native-ignite`
npm ERR! Exit status 243
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'npm i -g generator-react-native-ignite'.
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 react-native-ignite package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm i -g generator-react-native-ignite
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs react-native-ignite
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls react-native-ignite
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/giacomo/npm-debug.log
npm ERR! code 1
Closing this in favor of keeping open #226
i managed to fix this issue by following this guide:
https://docs.npmjs.com/getting-started/fixing-npm-permissions
This guide promotes bad practices
try --unsafe-perm=true --allow-root with sudo
Most helpful comment
+1 on this issue, but I have a workaround/better practice solution. It all boils down to attempting to use npm as a system (root) package manager - DON'T. It breeds permission issues. Also, do you trust every postinstall script in the entire dependency tree to run as root? What you probably want is a user-specific NPM prefix for all your global installs to go under. That way,
npm install -gactually works without sudo or janky security-breaking recursivechowns.Here's how I fixed it:
Add to
~/.bashrcor similar:Now
npm install -g react-native-igniteworks!For posterity, here's the exact issue I was seeing, even running under a root login shell: