question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

windows 8 :The syntax of the command is incorrect. npm ERR! code ELIFECYCLE

See original GitHub issue

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” }

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

4reactions
satyadkcommented, Jul 4, 2018

@KidusMT

I changed as below, in package.json After change :

  "scripts": {
    "start": "npm run build",
    "build": "webpack -d && copy src\\index.html dist\\index.html /Y && webpack-dev-server --content-base src/ --inline --hot", 
    "build:prod": "webpack -p && copy src\\index.html dist\\index.html"
  },

Before change :

"scripts": {
"start": "npm run build",
"build": "webpack -d && copy src/index.html dist/index.html && webpack-dev-server --content-base src/ --inline --hot",
"build:prod": "webpack -p && cp src/index.html dist/index.html"
},
0reactions
KidusMTcommented, Jul 2, 2018

@satyadk did you resolve your problem I am getting the same error. and I am on windows too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - npm start showing errors with code npm ERR! code ...
I presume you are using a windows OS to run this code and there is no cp command in windows. You should try...
Read more >
How to solve npm error npm ERR! code ELIFECYCLE
In order to solve the “npm ERR! code ELIFECYCLE ” error which is a very common type of error that occurs during npm...
Read more >
NPM install error - Material Design for Bootstrap
Run command npm cache verify and then run npm i. You should fix it on the second point, but if the problem still...
Read more >
undefined npm ERR code ELIFECYCLE Please ... - YouTube
undefined npm ERR code ELIFECYCLE Please assist NPM error webdriverIO. 2.7K views 2 years ago. Sagar S. Sagar S. 60K subscribers. Join.
Read more >
mklink error "The syntax of the command is incorrect" - TechNet
Hi,. I'm trying to run mklink command, but receive an error: C:\Windows\system32>mklink /J "C:\Users\[name]\AppData\Local\Google\Chrome\User ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found