Open MadeofTin opened 10 years ago
Tried it again and I get the spinning cursor of death.
Jamess-MacBook-Pro:app Tinman$ npm start
> ReactHack@0.0.2 start /Users/Tinman/Github/bellows-riddles-base/app
> webpack --watch --debug src/riddles.js build/riddles.js
sh: webpack: command not found
npm ERR! ReactHack@0.0.2 start: `webpack --watch --debug src/riddles.js build/riddles.js`
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the ReactHack@0.0.2 start script.
npm ERR! This is most likely a problem with the ReactHack package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! webpack --watch --debug src/riddles.js build/riddles.js
npm ERR! You can get their info via:
npm ERR! npm owner ls ReactHack
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 14.0.0
npm ERR! command "node" "/usr/local/bin/npm" "start"
npm ERR! cwd /Users/Tinman/Github/bellows-riddles-base/app
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/Tinman/Github/bellows-riddles-base/app/npm-debug.log
npm ERR! not ok code 0
Jamess-MacBook-Pro:app Tinman$ npm install ReactHack
npm WARN package.json ReactHack@0.0.2 No repository field.
npm WARN install Refusing to install ReactHack as a dependency of itself
Jamess-MacBook-Pro:app Tinman$ npm install
npm WARN package.json ReactHack@0.0.2 No repository field.
npm ERR! fetch failed https://registry.npmjs.org/recast/-/recast-0.5.27.tgz
The ReactHack errors are a red herring. It's just because I never changed the name of the app in package.json. I just updated it now. What's more concerning is the last line:
npm ERR! fetch failed https://registry.npmjs.org/recast/-/recast-0.5.27.tgz
Have you tried going to https://registry.npmjs.org/recast/-/recast-0.5.27.tgz in your browser? I did and it loads find. Maybe just try again?
Also updated the docs to explicitly say you need to cd app
before running npm install
.
It downloaded the file if that is what you mean. I redownloaded the repo and tried from the begining just incase I did something weird with Node.
Jamess-MacBook-Pro:app Tinman$ npm install
npm WARN package.json BellowsRiddles@0.0.0 No README data
/
When the thing is spinning does that mean it is doing something? It has been a long time spinning... Or that it is just live?
K, still not working for me :/
I have the spinny thing now. I went to another terminal and started up SimpleAuthServer.py.
I get a blank page when I go to. http://localhost:9001/app/index.html
Server output.
127.0.0.1 - - [20/Oct/2014 01:48:38] "GET /app/index.html HTTP/1.1" 200 -
127.0.0.1 - - [20/Oct/2014 01:48:38] code 404, message File not found
127.0.0.1 - - [20/Oct/2014 01:48:38] "GET /app/build/riddles.js HTTP/1.1" 404 -
Error if I go to :9001/app/
Serving HTTP on 0.0.0.0 port 9001 ...
127.0.0.1 - - [20/Oct/2014 01:50:27] "GET /app/ HTTP/1.1" 200 -
127.0.0.1 - - [20/Oct/2014 01:50:27] code 404, message File not found
127.0.0.1 - - [20/Oct/2014 01:50:27] "GET /app/build/riddles.js HTTP/1.1" 404 -
I am either thinking simple server doesn't know what to do with node or something. Or my npm never finished installing... Still just pinwheeling..
riddles.js does exist in my repo.
Ran npm install again and got
npm WARN package.json BellowsRiddles@0.0.0 No README data
npm WARN package.json parse@1.2.8 No repository field.
npm WARN package.json jsx-loader@0.0.0 No repository field.
npm WARN unmet dependency /Users/Tinman/Github/bellows-riddles-base/app/node_modules/jsx-loader/node_modules/react-tools/node_modules/commoner requires recast@'~0.5.0' but will load
npm WARN unmet dependency /Users/Tinman/Github/bellows-riddles-base/app/node_modules/jsx-loader/node_modules/react-tools/node_modules/recast,
npm WARN unmet dependency which is version 0.4.25
parse@1.2.8 node_modules/parse
├── localStorage@1.0.3
└── xmlhttprequest@1.6.0
Still 404 errors in SimpleServer
Reinstalled node.js. Same result. I am running a mac osx.10. Could that be doing it?
I tried npm start in the parent directory of the project and got and error, saw there was the package.json in the app directory so I put it there and ran start again. Got this..