mxstbr / login-flow

:key: A login/register flow built with React&Redux
https://loginflow.mxstbr.com
MIT License
1.6k stars 215 forks source link

'notsup' error during npm install #23

Closed bandtank closed 8 years ago

bandtank commented 8 years ago

I don't understand what the problem is, but here's the log after I try to run npm install immediately after cloning the repo:

Debug log: npm-debug.zip

> npm install
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

> react-router@2.0.0-rc5 postinstall /home/webserver/stuff/login-flow/node_modules/react-router
> node ./npm-scripts/postinstall.js

sh: 1: node: not found
reactjs-boilerplate@2.3.0 /home/webserver/stuff/login-flow

<-- removed a bunch of file/tree stuff --> #bandtank comment

npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.14
npm ERR! Linux 4.4.0-31-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! react-router@2.0.0-rc5 postinstall: `node ./npm-scripts/postinstall.js`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the react-router@2.0.0-rc5 postinstall script 'node ./npm-scripts/postinstall.js'.
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-router package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./npm-scripts/postinstall.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs react-router
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls react-router
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/webserver/stuff/login-flow/npm-debug.log

I know this is shown above, but just in case:

webserver@PSEWS1:~/stuff/login-flow$ nodejs --version
v4.2.6

webserver@PSEWS1:~/stuff/login-flow$ npm --version
3.5.2

And finally:

webserver@PSEWS1:~/stuff/login-flow$ uname -a
Linux PSEWS1 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

webserver@PSEWS1:~/stuff/login-flow$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.1 LTS
Release:    16.04
Codename:   xenial

I have no idea what to do. Any information would be helpful.

Edit: I thought of something rather important that seems to be one of the primary problems. I'm running this on a VMWare instance. The host OS is Windows Storage Server 2012 R2 64 bit and the guest OS is Ubuntu 16.04.1 LTS 64 bit as seen above.

bandtank commented 8 years ago

Nevermind. This was a node problem in Ubuntu. Don't install node on Ubuntu from apt-get. Download a binary, compile from source, or use nvm.