Hi,
not sure what event has caused this but in the last few days my angular 2 
installation on windows has gone badly wrong.
As an example running ng new proj-name gives the following (only last lines 
shown)

(node:7180) Warning: Possible EventEmitter memory leak detected. 11 error 
listeners added. Use emitter.setMaxListeners() to increase limit
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: 
fsevents@1.1.1
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" 
"C:\\Users\\jnorris\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" 
"install"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.7
npm ERR! path 
C:\Temp\angularjs_example\angular2\heroes2\node_modules\.staging\@angular\core-e9954ff8
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall rename
npm ERR! Error: EPERM: operation not permitted, rename 
'C:\Temp\angularjs_example\angular2\heroes2\node_modules\.staging\@angular\core-e9954ff8'
 
-> 'C:\Temp\angularjs_example\angular2\heroes2\node_modules\@angular\core'
npm ERR!     at destStatted 
(C:\Users\jnorris\AppData\Roaming\npm\node_modules\npm\lib\install\action\finalize.js:25:7)
npm ERR!     at FSReqWrap.oncomplete (fs.js:123:15)
npm ERR!
npm ERR! Error: EPERM: operation not permitted, rename 
'C:\Temp\angularjs_example\angular2\heroes2\node_modules\.staging\@angular\core-e9954ff8'
 
-> 'C:\Temp\angularjs_example\angular2\heroes2\node_modules\@angular\core'
npm ERR!     at Error (native)
npm ERR!  { Error: EPERM: operation not permitted, rename 
'C:\Temp\angularjs_example\angular2\heroes2\node_modules\.staging\@angular\core-e9954ff8'
 
-> 'C:\Temp\angularjs_example\angular2\heroes2\node_modules\@angular\core'
npm ERR!     at destStatted 
(C:\Users\jnorris\AppData\Roaming\npm\node_modules\npm\lib\install\action\finalize.js:25:7)
npm ERR!     at FSReqWrap.oncomplete (fs.js:123:15)
npm ERR!
npm ERR! Error: EPERM: operation not permitted, rename 
'C:\Temp\angularjs_example\angular2\heroes2\node_modules\.staging\@angular\core-e9954ff8'
 
-> 'C:\Temp\angularjs_example\angular2\heroes2\node_modules\@angular\core'
npm ERR!     at Error (native) parent: 'heroes2' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR!     C:\Temp\angularjs_example\angular2\heroes2\npm-debug.log
Package install failed, see above.

Running in an administrator window makes no difference. I did see something 
that said I needed to change permissions at 
C:\Users\jnorris\AppData\Roaming\npm. This folder was read only and I 
changed that. But still same problem.

ng --version
@angular/cli: 1.0.0-beta.32.3
node: 6.9.5
os: win32 x64

Does anyone know what has caused this and what can fix it?

Regards,
John

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to