Reputation: 3
When I execute the command ng new app-name
I get error -4058
.
When I run the same command opening cmd as administrator in the directory C: / Windows/system32
I have no problems when creating the project. But if I change the directory I have the same issue.
I suppose it must be a permissions problem but it is not solved by opening cmd
as administrator.
The creation process is frozen in extract: rxjs:
and after a long time I get the following error
npm ERR! path C:\Users\Usuario\proyectName\node_modules\@angular-devkit\build-optimizer\node_modules\typescript npm ERR! code ENOENT npm ERR! errno -4058 npm ERR! syscall rename npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\Usuario\proyectName\node_modules\@angular-devkit\build-optimizer\node_modules\typescript' -> 'C:\Users\Usuario\proyectName\node_modules\@angular-devkit\build-optimizer\node_modules.typescript.DELETE' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Usuario\AppData\Roaming\npm-cache_logs\2018-03-20T02_40_45_377Z-debug.log Error: Package install failed, see above. Package install failed, see above.
Npm version
5.7.1
Angular version
Angular CLI: 1.7.3
Node: 8.10.0
OS: win32 x64
Angular:
...
Upvotes: 0
Views: 3647
Reputation: 3
I was able to solve the problem by uninstalling completely angular/cli and node
Upvotes: 0