-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Description
Versions
Windows: 10 Pro (64-bit)
Node: 8.11.0
NPM: 5.6.0
Repro steps
- Step 1 - Ran the "node.js command prompt"
- Step 2 - typed in "npm install -g @angular/cli" and pressed "enter" key
Observed behavior
Your environment has been set up for using Node.js 8.11.0 (x64) and npm.
C:\Users\ranch>npm -v
5.6.0
C:\Users\ranch>node -v
v8.11.0
C:\Users\ranch>np -v
'np' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\ranch>npm install -g @angular/cli
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\@angular\cli\node_modules\fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, rename 'C:\Users\ranch\AppData\Roaming\npm\node_modules\.staging\fsevents-1cd82493\node_modules\aproba' -> 'C:\Users\ranch\AppData\Roaming\npm\node_modules\.staging\aproba-15c81fb8'
npm ERR! path C:\Users\ranch\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\@ngtools\json-schema
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\ranch\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\@ngtools\json-schema' -> 'C:\Users\ranch\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\@ngtools\.json-schema.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\ranch\AppData\Roaming\npm-cache\_logs\2018-03-30T04_50_51_261Z-debug.log
I've tried both running the this in the regular command prompt as admin and myself with the same results.
I've tried getting the lastest (npm install -g @angular/cli@latest) with no success.
I've tried changing the user defined PATH in the Environment Variable to the location of npm in my machine (C:\Program Files\nodejs\node_modules\npm) but didnt have any luck that route either.
Any suggestions?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels