- This topic has 1 reply, 2 voices, and was last updated 3 years ago by support-swapna.
-
AuthorPosts
-
robertbrowniiiParticipantAngular project is failing to create due to some permissipons problems — even when running as an admiistrator!
I create an angular project, and get the folowing failure:
npm ERR! path c:Researchsectestsectestuinode_modulesfrom2package.json.3264852607
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall rename
npm ERR! Error: EPERM: operation not permitted, rename ‘c:Researchsectestsectestuinode_modulesfrom2package.json.326485260
7’ -> ‘c:Researchsectestsectestuinode_modulesfrom2package.json’
npm ERR! { [Error: EPERM: operation not permitted, rename ‘c:Researchsectestsectestuinode_modulesfrom2package.json.32648
52607’ -> ‘c:Researchsectestsectestuinode_modulesfrom2package.json’]
npm ERR! cause:
npm ERR! { Error: EPERM: operation not permitted, rename ‘c:Researchsectestsectestuinode_modulesfrom2package.json.3264
852607’ -> ‘c:Researchsectestsectestuinode_modulesfrom2package.json’
npm ERR! errno: -4048,
npm ERR! code: ‘EPERM’,
npm ERR! syscall: ‘rename’,
npm ERR! path:
npm ERR! ‘c:\Research\sectest\sectestui\node_modules\from2\package.json.3264852607’,
npm ERR! dest:
npm ERR! ‘c:\Research\sectest\sectestui\node_modules\from2\package.json’ },
npm ERR! stack:
npm ERR! ‘Error: EPERM: operation not permitted, rename ‘c:\Research\sectest\sectestui\node_modules\from2\package.jso
n.3264852607’ -> ‘c:\Research\sectest\sectestui\node_modules\from2\package.json”,
npm ERR! errno: -4048,
npm ERR! code: ‘EPERM’,
npm ERR! syscall: ‘rename’,
npm ERR! path:
npm ERR! ‘c:\Research\sectest\sectestui\node_modules\from2\package.json.3264852607’,
npm ERR! dest:
npm ERR! ‘c:\Research\sectest\sectestui\node_modules\from2\package.json’ }
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:Usersrbrown3AppDataRoamingnpm-cache_logs2021-03-06T13_23_49_534Z-debug.log
The terminal process terminated with exit code: 127The project creation is left incomplete.
support-swapnaModeratorRobert,
Sorry that you are seeing this issue.
Do you have any anti virus or Windows Defender (in case of Windows OS) running in the machine?
If yes, then you can try adding the node_modules as exclusion. Please see this thread which discusses similar issue : https://stackoverflow.com/questions/56829352/error-the-operation-was-rejected-by-your-operating-system-when-trying-to-creaIf you are still seeing issues, then please share the OS and version details, the version of Angular CLI selected and the debug log from this locatio : C:\Users\rbrown3\AppData\Roaming\npm-cache_logs to help us investigate further.
–Swapna
Genuitec Support -
AuthorPosts