Answer the question
In order to leave comments, you need to log in
Bug in ng new?
When you type ng new app, an error occurs (regardless of whether cmd is an administrator or not)
npm ERR! path D:\CODE\app1\node_modules\.staging\typescript-b6fa0f51\lib\typescriptServices.js
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink 'D:\CODE\app1\node_modules\.staging\typescript-b6fa0f51\lib\typescriptServices.js'
npm ERR! { [Error: EPERM: operation not permitted, unlink 'D:\CODE\app1\node_modules\.staging\typescript-b6fa0f51\lib\typescriptServices.js']
npm ERR! cause:
npm ERR! { Error: EPERM: operation not permitted, unlink 'D:\CODE\app1\node_modules\.staging\typescript-b6fa0f51\lib\typescriptServices.js'
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path:
npm ERR! 'D:\\CODE\\app1\\node_modules\\.staging\\typescript-b6fa0f51\\lib\\typescriptServices.js' },
npm ERR! stack:
npm ERR! 'Error: EPERM: operation not permitted, unlink \'D:\\CODE\\app1\\node_modules\\.staging\\typescript-b6fa0f51\\lib\\typescriptServices.js\'',
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path:
npm ERR! 'D:\\CODE\\app1\\node_modules\\.staging\\typescript-b6fa0f51\\lib\\typescriptServices.js',
npm ERR! parent: 'app1' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\User\AppData\Roaming\npm-cache\_logs\2019-09-29T12_33_17_568Z-debug.log
Package install failed, see above.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question