Base solution for your next web application
Open Closed

npm error #9215


User avatar
0
kasem created

Hi

I got the following error after updating a specific npm package in angular. I tried reverting my update back. I also cleaned both yarn and npm caches and reinstall node_modules but that didn't help.

0 info it worked if it ends with ok 1 verbose cli [ 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 'start' 1 verbose cli ] 2 info using [email protected] 3 info using [email protected] 4 verbose run-script [ 'prestart', 'start', 'poststart' ] 5 info lifecycle [email protected]~prestart: [email protected] 6 info lifecycle [email protected]~start: [email protected] 7 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true 8 verbose lifecycle [email protected]~start: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;c:\Code\MyApp\Angular\node_modules\.bin;C:\Program Files\ConEmu\ConEmu\Scripts;C:\Program Files\ConEmu;C:\Program Files\ConEmu\ConEmu;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\nodejs\;C:\Program Files (x86)\Yarn\bin\;C:\Program Files\Git\cmd;C:\Program Files (x86)\dotnet\;C:\Program Files\PuTTY\;C:\Users\AppData\Local\Microsoft\WindowsApps;;C:\Users\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\AppData\Roaming\npm;C:\Users\AppData\Local\Yarn\bin;C:\Users\.dotnet\tools 9 verbose lifecycle [email protected]~start: CWD: c:\Code\MyApp\Angular 10 silly lifecycle [email protected]~start: Args: [ '/d /s /c', 'gulp buildDev && ng serve --host 0.0.0.0 --port 4200' ] 11 silly lifecycle [email protected]~start: Returned: code: 1 signal: null 12 info lifecycle [email protected]~start: Failed to exec start script 13 verbose stack Error: [email protected] start: gulp buildDev && ng serve --host 0.0.0.0 --port 420013 verbose stack Exit status 1 13 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16) 13 verbose stack at EventEmitter.emit (events.js:321:20) 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:321:20) 13 verbose stack at maybeClose (internal/child_process.js:1021:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5) 14 verbose pkgid [email protected] 15 verbose cwd c:\Code\MyApp\Angular 16 verbose Windows_NT 10.0.18363 17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start" 18 verbose node v12.16.0 19 verbose npm v6.13.4 20 error code ELIFECYCLE 21 error errno 1 22 error [email protected] start:gulp buildDev && ng serve --host 0.0.0.0 --port 420022 error Exit status 1 23 error Failed at the [email protected] start script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ]


4 Answer(s)
  • User Avatar
    0
    robert created
    Support Team

    Hi kasem ,

    You can try to do the following and let me know if this works :

    1. delete .yarnrc , yarn.lock , and package-lock.json in your angular directory or where your package.json is located
    2. do yarn command again
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @kasem

    You can use a specific version of a package like below;

    version: "123"

    Just don't use ~ and ^ at the beginning of the version number.

  • User Avatar
    0
    kasem created

    Thank you

    Unfortunately nothing helped. Still getting same error

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Problem might be something else. If you can share your angular project via email, we can take a look.

    Thanks,