-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
windows 8 :The syntax of the command is incorrect. npm ERR! code ELIFECYCLE #13
Comments
Resolved it : and changed the url from / to \ in windows |
@vishaldj88 i am also stuck in the same problem. It came again even it was working before. Please leaborate this part "changed the url from / to \ in windows". |
In windows it accepts \ in place of / in your webpac config |
@vishaldj88 I am also getting the same error. but I was not able to figure where did you replace / with \ for windows. Below is my package.json and webpack.config.js . Please tell me where did you make the change to resolve this issue. TIA. package.json webpack.config.js var webpack = require("webpack"); var DIST_DIR = path.resolve(__dirname, "dist"); var config = {
} ; module.exports = config; |
@satyadk did you resolve your problem I am getting the same error. and I am on windows too. |
I changed as below, in package.json
Before change :
|
I had tough time setting up this simpe solution on windows ,seems like it is very outdated
bundle.js 3.11 kB 0 [emitted] main [0] ./src/app/index.js 40 bytes {0} [built]
The syntax of the command is incorrect.
npm ERR! code ELIFECYCLE
output :
bundle.js 3.11 kB 0 [emitted] main
[0] ./src/app/index.js 40 bytes {0} [built]
The syntax of the command is incorrect.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! reactbasic1@1.0.0 build:
webpack -d && copy src/index.html dist/index.html && webpack-dev-server --content-base sr c/ --inline --hot
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the reactbasic1@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Not sure if it is very outdated .
Dev dependencies:
"devDependencies": {
"babel-core": "^6.25.0",
"babel-loader": "^7.1.1",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-2": "^6.24.1",
"webpack": "^3.0.0",
"webpack-dev-server": "^2.5.0"
}
The text was updated successfully, but these errors were encountered: