voronianski / flux-comparison

:pencil: Practical comparison of different Flux solutions

Home Page:https://labs.voronianski.dev/flux-comparison/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Breaks on watchify

subpublic opened this issue · comments

Hi!

All of the demos fails for me at npm start.

npm ERR! Darwin 15.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v4.2.1
npm ERR! npm v3.3.8
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! @ start: ../node_modules/.bin/watchify . -o build/bundle.js -v -d
npm ERR! spawn ENOENT

Any ideas?

+1

If you're using Windows the error is watchify . -o the -o option is not available on Windows
"../node_modules/.bin/watchify . -o build/bundle.js -v -d"

The -o option can be a file or a shell command (not available on Windows) that receives piped input:
https://www.npmjs.com/package/watchify

Same here, and I'm on OS X El Capitan.

$ npm start           

> flux-comparison-redux@ start /Users/lpietrzak/temp/flux-comparison/redux
> ../node_modules/.bin/watchify . -o build/bundle.js -v -d

sh: ../node_modules/.bin/watchify: No such file or directory

npm ERR! Darwin 15.2.0
npm ERR! argv "node" "/usr/local/bin/npm" "start"
npm ERR! node v0.10.33
npm ERR! npm  v2.1.7
npm ERR! code ELIFECYCLE
npm ERR! flux-comparison-redux@ start: `../node_modules/.bin/watchify . -o build/bundle.js -v -d`
npm ERR! Exit status 127
npm ERR! 
npm ERR! Failed at the flux-comparison-redux@ start script.
npm ERR! This is most likely a problem with the flux-comparison-redux package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ../node_modules/.bin/watchify . -o build/bundle.js -v -d
npm ERR! You can get their info via:
npm ERR!     npm owner ls flux-comparison-redux
npm ERR! There is likely additional logging output above.

@subpublic @Ouadie @smutnyleszek I cannot reproduce the issue, did you ran npm start in example folder? (what example folders did you try?)

@voronianski I will try again - my steps looks like this:

git clone https://github.com/voronianski/flux-comparison.git
cd flux-comparison
npm install
cd redux
npm install

...aaand it works 😱

I think what I didn't do previous time was running npm install in root directory? Let the other guys check and confirm if this is the case for them.

@voronianski always the same error on Windows as @subpublic and @stevenmwade

$ npm start

> @ start E:\work\repos\flux-comparison\reflux
> ../node_modules/.bin/watchify . -o build/bundle.js -v -d

'..' is not recognized as an internal or external command,
operable program or batch file.

npm ERR! Windows_NT 10.0.14251
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\                                            node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v4.2.5
npm ERR! npm  v2.14.12
npm ERR! code ELIFECYCLE
npm ERR! @ start: `../node_modules/.bin/watchify . -o build/bundle.js -v -d`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ start script '../node_modules/.bin/watchify . -o build/                                            bundle.js -v -d'.
npm ERR! This is most likely a problem with the  package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ../node_modules/.bin/watchify . -o build/bundle.js -v -d
npm ERR! You can get their info via:
npm ERR!     npm owner ls
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     E:\work\repos\flux-comparison\reflux\npm-debug.log