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 install doesn't work on Windows machine

See original GitHub issue

0 info it worked if it ends with ok 1 verbose cli [ ‘C:\Program Files\nodejs\node.exe’, 1 verbose cli ‘C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js’, 1 verbose cli ‘run’, 1 verbose cli ‘test’ ] 2 info using npm@6.9.0 3 info using node@v10.16.3 4 verbose run-script [ ‘pretest’, ‘test’, ‘posttest’ ] 5 info lifecycle root@~pretest: root@ 6 info lifecycle root@~test: root@ 7 verbose lifecycle root@~test: unsafe-perm in lifecycle true 8 verbose lifecycle root@~test: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;O:\ProgramLocal\ProjectsNodeJS\lerna-repo\node_modules.bin;C:\Users\uxooo\AppData\Roaming\npm;C:\Program Files\nodejs;C:\Windows\system32\WBEM;C:\Windows\system32\WBEM;C:\Windows\system32\WBEM;C:\Windows\system32\WBEM;C:\Windows\system32\WBEM;C:\Windows\system32\WBEM;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Users\uxooo\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Git\cmd;C:\Users\uxooo\AppData\Local\Microsoft\WindowsApps;C:\Program Files\nodejs;C:\Users\uxooo\AppData\Local\Microsoft\WindowsApps;C:\Users\uxooo\AppData\Roaming\npm 9 verbose lifecycle root@~test: CWD: O:\ProgramLocal\ProjectsNodeJS\lerna-repo 10 silly lifecycle root@~test: Args: [ ‘/d /s /c’, ‘lerna run test --stream --no-private’ ] 11 silly lifecycle root@~test: Returned: code: 1 signal: null 12 info lifecycle root@~test: Failed to exec test script 13 verbose stack Error: root@ test: lerna run test --stream --no-private 13 verbose stack Exit status 1 13 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16) 13 verbose stack at EventEmitter.emit (events.js:198:13) 13 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14) 13 verbose stack at ChildProcess.emit (events.js:198:13) 13 verbose stack at maybeClose (internal/child_process.js:982:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) 14 verbose pkgid root@ 15 verbose cwd O:\ProgramLocal\ProjectsNodeJS\lerna-repo 16 verbose Windows_NT 10.0.18362 17 verbose argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “run” “test” 18 verbose node v10.16.3 19 verbose npm v6.9.0 20 error code ELIFECYCLE 21 error errno 1 22 error root@ test: lerna run test --stream --no-private 22 error Exit status 1 23 error Failed at the root@ test script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ]

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Uxooscommented, Oct 7, 2019

RESOLVED. I change in every package.json files from “scripts”: {…“build-js”: “.\bin\build-js’”,…} to “scripts”: {…“build-js”: “babel src --out-dir lib --ignore ‘/*.test.js’ && babel src --out-dir es --ignore '/*.test.js’”,…} Replace path to file => body of file.

0reactions
botelastic[bot]commented, May 20, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Is this issue still important to you? If so, please leave a comment and let us know. As always, thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

5 Ways to Fix the Npm Install Not Working Issue
Way 1. Make Sure Npm Is Installed · Way 2. Make Sure There Is a Package.json File · Way 3. Delete Lock File...
Read more >
This npm install is not working on Windows - node.js
8 Answers 8 · Check your %PATH% environment variable to ensure no references to Node.js or npm exist. · If it's still not...
Read more >
How to fix npm install command not working
The error above happens when npm can't be found under the PATH environment variable. First, you need to make sure that npm is...
Read more >
Common errors | npm Docs
Windows: If you're on Windows and you have a broken installation, the easiest thing to do is to reinstall node from the official...
Read more >
Why does NPM install not work? - Quora
The Npm command not found error can appear when you install or upgrade npm. On Windows, the cause of this error could be...
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