React-starter-kit: node-pre-gyp install --fallback-to-build failed when run npm install

Created on 29 Jul 2016  路  4Comments  路  Source: kriasoft/react-starter-kit

OS: windows 10
Node: v6.3.1
Npm: v3.9

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "D:\\Program Files\\nodejs\\node.exe" "C:\\Users\\shikelong\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v6.3.1
npm ERR! npm  v3.9.3
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
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 sqlite3 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 information on how to open an issue for this project with:
npm ERR!     npm bugs sqlite3
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls sqlite3
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     G:\react-playground\npm-debug.log

Regards. I clone the newest react-starter-kit

question

Most helpful comment

I get stuck in this problem, too. node-gyp is globally installed, but the error still occurred. (I'm using nvm)

All 4 comments

Install node-gyp globally, follow install instructions.

Do not forget to install prerequisities! :-)

I get stuck in this problem, too. node-gyp is globally installed, but the error still occurred. (I'm using nvm)

@manhhailua Probably? :-D What OS you have? Windows needs to install Visual C++ Build Tools and Python 2.7 (v3.x.x is not supported)

Again: Follow node-gyp install instructions

@langpavel : sorry for my late reply.
I handled this problem. It's because I tried to npm install as root (for some reason, I cannot use another user).
If someone want to run npm install as root, they should:
npm install --unsafe-perm
Should make a warning in README about this problem.

Was this page helpful?
0 / 5 - 0 ratings