Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Lession 1 - fail to run npm install & npm start #269

Closed
BrickXu opened this issue Dec 12, 2016 · 5 comments
Closed

Lession 1 - fail to run npm install & npm start #269

BrickXu opened this issue Dec 12, 2016 · 5 comments

Comments

@BrickXu
Copy link

BrickXu commented Dec 12, 2016

I start to learn lession 1 with the tutorial and fail to start it.

My node.js version is v6.4.0 and npm version is v2.15.9

Here is the npm install stderr

npm WARN package.json tutorial@1.0.0 No repository field.
npm WARN unmet dependency /home/xulei/GithubSpaces/react-router-tutorial/lessons/01-setting-up/node_modules/webpack/node_modules/enhanced-resolve requires memory-fs@'^0.2.0' but will load
npm WARN unmet dependency /home/xulei/GithubSpaces/react-router-tutorial/lessons/01-setting-up/node_modules/webpack/node_modules/memory-fs,
npm WARN unmet dependency which is version 0.3.0
npm WARN unmet dependency /home/xulei/GithubSpaces/react-router-tutorial/lessons/01-setting-up/node_modules/webpack/node_modules/uglify-js requires async@'~0.2.6' but will load
npm WARN unmet dependency /home/xulei/GithubSpaces/react-router-tutorial/lessons/01-setting-up/node_modules/webpack/node_modules/async,
npm WARN unmet dependency which is version 1.5.2
npm WARN unmet dependency /home/xulei/GithubSpaces/react-router-tutorial/lessons/01-setting-up/node_modules/webpack/node_modules/watchpack requires async@'^0.9.0' but will load
npm WARN unmet dependency /home/xulei/GithubSpaces/react-router-tutorial/lessons/01-setting-up/node_modules/webpack/node_modules/async,
npm WARN unmet dependency which is version 1.5.2

Here is npm start stderr

> tutorial@1.0.0 start /home/xulei/GithubSpaces/react-router-tutorial/lessons/01-setting-up
> webpack-dev-server --inline --content-base .

sh: 1: webpack-dev-server: not found

npm ERR! Linux 4.4.0-45-generic
npm ERR! argv "/opt/node-v6.4.0-linux-x64/bin/node" "/usr/bin/npm" "start"
npm ERR! node v6.4.0
npm ERR! npm  v2.15.9
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! tutorial@1.0.0 start: `webpack-dev-server --inline --content-base .`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the tutorial@1.0.0 start script 'webpack-dev-server --inline --content-base .'.
npm ERR! This is most likely a problem with the tutorial package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     webpack-dev-server --inline --content-base .
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs tutorial
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! 
npm ERR!     npm owner ls tutorial
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/xulei/GithubSpaces/react-router-tutorial/lessons/01-setting-up/npm-debug.log
@jazzominy
Copy link

I faced similar issue for one of the tutorials. See if this helps http://stackoverflow.com/questions/34700610/npm-install-wont-install-devdependencies

@BrickXu
Copy link
Author

BrickXu commented Dec 13, 2016

@jazzominy Thanks 👍

@Andersos
Copy link

@BrickXu If it worked you can close the issue.

@BrickXu
Copy link
Author

BrickXu commented Dec 14, 2016

@Andersos OK, closed. Thanks all.

@BrickXu BrickXu closed this as completed Dec 14, 2016
@jazzominy
Copy link

Glad that helped

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants