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.

npm start -s >> ERROR: "test:watch" / "lint:watch" exited with 1

See original GitHub issue

Node version: 7.2 npm version: 1.3.26 Operating system: Windows_NT 10.0.14393 Command line used: npm start -s

Console error: ERROR: "lint:watch" exited with 1.

I was able to start the project editing the package.json and removing the extra – from both lines

"lint:watch": "npm run lint -- --watch",
"test:watch": "npm run test -- --watch",

Steps to reproduce: following install instructions

  1. In empty folder clone the project git clone https://github.com/coryhouse/react-slingshot.git
  2. npm run setup
  3. Remove the GIT repository : YES
  4. npm start

full npm start console log

 npm start

> react-slingshot@5.0.0 prestart C:\nodejs\projects\react-slingshot
> npm-run-all --parallel start-message remove-dist


> react-slingshot@5.0.0 start-message C:\nodejs\projects\react-slingshot
> babel-node tools/startMessage.js


> react-slingshot@5.0.0 remove-dist C:\nodejs\projects\react-slingshot
> rimraf ./dist

Starting app in dev mode...

> react-slingshot@5.0.0 start C:\nodejs\projects\react-slingshot
> npm-run-all --parallel test:watch open:src lint:watch


> react-slingshot@5.0.0 test:watch C:\nodejs\projects\react-slingshot
> npm run test -- --watch


> react-slingshot@5.0.0 open:src C:\nodejs\projects\react-slingshot
> babel-node tools/srcServer.js


> react-slingshot@5.0.0 lint:watch C:\nodejs\projects\react-slingshot
> npm run lint -- --watch

npm ERR! Error: ENOENT: no such file or directory, open 'C:\nodejs\projects\react-slingshot\node_modules\test\package.json'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/isaacs/npm/issues>

npm ERR! System Windows_NT 10.0.14393
npm ERR! command "C:\\nodejs\\node.exe" "C:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "test" "--" "--watch"
npm ERR! cwd C:\nodejs\projects\react-slingshot
npm ERR! node -v v7.2.0
npm ERR! npm -vnpm 1.3.26
 npm ERR!ERR!  Error: ENOENT: no such file or directory, open 'C:\nodejs\projects\react-slingshot\node_modules\lint\package.json'
path C:\nodejs\projects\react-slingshot\node_modules\test\package.json
npm npm ERR! ERR!syscall If you need help, you may report this *entire* log,
 open
npmnpm  ERR!ERR!  including the npm and node versions, at:
codenpm ENOENT
 ERR!npm     <http://github.com/isaacs/npm/issues>

ERR! npmerrno  -4058
ERR! System Windows_NT 10.0.14393
npm ERR! command "C:\\nodejs\\node.exe" "C:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "lint" "--" "--watch"
npm ERR! cwd C:\nodejs\projects\react-slingshot
npm ERR! node -v v7.2.0
npmnpm ERR!
ERR!npm npm -v  1.3.26
ERR!npm Additional logging details can be found in:
 npmERR!  path C:\nodejs\projects\react-slingshot\node_modules\lint\package.json
ERR!     C:\nodejs\projects\react-slingshot\npm-debug.log
npm npm ERR! ERR! syscall open
not ok code 0
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\nodejs\projects\react-slingshot\npm-debug.log
npm ERR! not ok code 0

npm ERR! react-slingshot@5.0.0 test:watch: `npm run test -- --watch`
npm ERR! Exit status 4294963238
npm ERR!
npm ERR! Failed at the react-slingshot@5.0.0 test:watch script.
npm ERR! This is most likely a problem with the react-slingshot package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run test -- --watch
npm
ERR!npm You can get their info via:
 npm ERR!ERR! react-slingshot@5.0.0 lint:watch: `npm run lint -- --watch`
     npm owner ls react-slingshot
npmnpm  ERR! There is likely additional logging output above.
ERR!npm Exit status 4294963238
 npmERR!  ERR!System Windows_NT 10.0.14393

npmnpm  ERR!ERR! command Failed at the react-slingshot@5.0.0 lint:watch script.
 "C:\\nodejs\\node.exe" "C:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "test:watch"
npm npm ERR!ERR! This is most likely a problem with the react-slingshot package,
 npmcwd C:\nodejs\projects\react-slingshot
 npmERR!  not with npm itself.
ERR!npm  node -v v7.2.0
ERR!npm Tell the author that this fails on your system:
 npmERR!  ERR!npm -v 1.3.26
     npm run lint -- --watch
npmnpm  ERR! code ELIFECYCLE
ERR! You can get their info via:
npm ERR!     npm owner ls react-slingshot
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 10.0.14393
npm ERR! command "C:\\nodejs\\node.exe" "C:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "lint:watch"
npm ERR! cwd C:\nodejs\projects\react-slingshot
npm ERR! node -v v7.2.0
npm ERR!npm  npm -vERR! 1.3.26

npm npm ERR! ERR!code Additional logging details can be found in:
 ELIFECYCLE
npm ERR!     C:\nodejs\projects\react-slingshot\npm-debug.log
npm ERR! not ok code 0
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\nodejs\projects\react-slingshot\npm-debug.log
npm ERR! not ok code 0
ERROR: "test:watch" exited with 1.

npm ERR! react-slingshot@5.0.0 start: `npm-run-all --parallel test:watch open:src lint:watch`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-slingshot@5.0.0 start script.
npm ERR! This is most likely a problem with the react-slingshot package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm-run-all --parallel test:watch open:src lint:watch
npm ERR! You can get their info via:
npm ERR!     npm owner ls react-slingshot
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 10.0.14393
npm ERR! command "C:\\nodejs\\node.exe" "C:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! cwd C:\nodejs\projects\react-slingshot
npm ERR! node -v v7.2.0
npm ERR! npm -v 1.3.26
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\nodejs\projects\react-slingshot\npm-debug.log
npm ERR! not ok code 0

Npm debug log

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\nodejs\\node.exe',
1 verbose cli   'C:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'start' ]
2 info using npm@1.3.26
3 info using node@v7.2.0
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info prestart react-slingshot@5.0.0
6 verbose unsafe-perm in lifecycle true
7 info start react-slingshot@5.0.0
8 verbose unsafe-perm in lifecycle true
9 info react-slingshot@5.0.0 Failed to exec start script
10 error react-slingshot@5.0.0 start: `npm-run-all --parallel test:watch open:src lint:watch`
10 error Exit status 1
11 error Failed at the react-slingshot@5.0.0 start script.
11 error This is most likely a problem with the react-slingshot package,
11 error not with npm itself.
11 error Tell the author that this fails on your system:
11 error     npm-run-all --parallel test:watch open:src lint:watch
11 error You can get their info via:
11 error     npm owner ls react-slingshot
11 error There is likely additional logging output above.
12 error System Windows_NT 10.0.14393
13 error command "C:\\nodejs\\node.exe" "C:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
14 error cwd C:\nodejs\projects\react-slingshot
15 error node -v v7.2.0
16 error npm -v 1.3.26
17 error code ELIFECYCLE
18 verbose exit [ 1, true ]

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
kwelchcommented, Nov 23, 2016

Yes, this appears to be a node 7+ issue on Windows. For now I would recommend using 6.9 or earlier.

1reaction
kwelchcommented, Nov 23, 2016

Did you install a package called test? The specific error that is causing the failure is - no such file or directory, open 'C:\nodejs\projects\react-slingshot\node_modules\test\package.json'

Read more comments on GitHub >

github_iconTop Results From Across the Web

The command "npm run build -- --prod" exited with code 1 error
I'm developing an Asp.Net Core 2 and Angular 5 project in visual studio 2017. When I'm going to publish my project then the...
Read more >
Helpers and tips for npm run scripts - Michael Kühnel
So npm run lint:watch will watch for changes in the file system and will automatically run eslint when a file changes. Get notified...
Read more >
start-server-and-test - npm
Starts server, waits for URL, then runs test command; when the tests end, shuts down server. Latest version: 1.15.2, last published: 20 days ......
Read more >
npm-run-all
A CLI tool to run multiple npm-scripts in parallel or sequential.. Latest version: 4.1.5, last published: 4 years ago.
Read more >
Common errors | npm Docs
Broken npm installation; Random errors; No compatible version found ... One thing we noticed is that the .gitconfig used is not always the...
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