Skip to content

Installation fails with error code -4058 #2290

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

Closed
ghost opened this issue Sep 22, 2016 · 2 comments
Closed

Installation fails with error code -4058 #2290

ghost opened this issue Sep 22, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 22, 2016

  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
    Windows 10
  2. Versions. Please run ng --version. If there's nothing outputted, please run
    in a Terminal: node --version and paste the result here:

Output:
C:\CDATA\Angular CLI>node --version
v6.6.0

  1. Repro steps. Was this an app that wasn't created using the CLI? What change did you
    do on your code? etc.

    This is an installation error...

  2. The log given by the failure. Normally this include a stack trace and some
    more information.

Error stack trace from the log file:

113513 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\angular-cli\node_modules\chokidar\node_modules\fsevents):
113514 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
113515 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: darwin
113515 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: any
113515 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: win32
113515 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
113516 verbose stack Error: ENOENT: no such file or directory, rename 'C:\Users\USERNAME\AppData\Roaming\npm\node_modules.staging\abbrev-0bb3b844' -> 'C:\Users\USERNAME\AppData\Roaming\npm\node_modules\angular-cli\node_modules\npm\node_modules\abbrev'
113516 verbose stack at destStatted (C:\Users\USERNAME\AppData\Roaming\npm\node_modules\npm\lib\install\action\finalize.js:25:7)
113516 verbose stack at FSReqWrap.oncomplete (fs.js:123:15)
113516 verbose stack
113516 verbose stack Error: ENOENT: no such file or directory, rename 'C:\Users\USERNAME\AppData\Roaming\npm\node_modules.staging\abbrev-0bb3b844' -> 'C:\Users\USERNAME\AppData\Roaming\npm\node_modules\angular-cli\node_modules\npm\node_modules\abbrev'
113516 verbose stack at Error (native)
113517 verbose cwd C:\CDATA\Angular CLI
113518 error Windows_NT 10.0.14393
113519 error argv "C:\Program Files\nodejs\node.exe" "C:\Users\USERNAME\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "-g" "angular-cli"
113520 error node v6.6.0
113521 error npm v3.10.8
113522 error path C:\Users\USERNAME\AppData\Roaming\npm\node_modules.staging\abbrev-0bb3b844
113523 error code ENOENT
113524 error errno -4058
113525 error syscall rename
113526 error enoent ENOENT: no such file or directory, rename 'C:\Users\USERNAME\AppData\Roaming\npm\node_modules.staging\abbrev-0bb3b844' -> 'C:\Users\USERNAME\AppData\Roaming\npm\node_modules\angular-cli\node_modules\npm\node_modules\abbrev'
113527 error enoent ENOENT: no such file or directory, rename 'C:\Users\USERNAME\AppData\Roaming\npm\node_modules.staging\abbrev-0bb3b844' -> 'C:\Users\USERNAME\AppData\Roaming\npm\node_modules\angular-cli\node_modules\npm\node_modules\abbrev'
113527 error enoent This is most likely not a problem with npm itself
113527 error enoent and is related to npm not being able to find a file.
113528 verbose exit [ -4058, true ]

  1. Mention any other details that might be useful.

I am also using the latest NPM

Output:
C:\CDATA\Angular CLI>npm --version
3.10.8

@filipesilva
Copy link
Contributor

Dupe of #1190

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant