Can't install amplify globally on windows
See original GitHub issueI am trying to install amplify, but get this output in console:
npm ERR! code EPERM
npm ERR! syscall rename
npm ERR! path C:\Users\andre\AppData\Roaming\npm\node_modules\@aws-amplify\cli
npm ERR! dest C:\Users\andre\AppData\Roaming\npm\node_modules\@aws-amplify\.cli-HbiUvD7o
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\andre\AppData\Roaming\npm\node_modules\@aws-amplify\cli' -> 'C:\Users\andre\AppData\Roaming\npm\node_modules\@aws-amplify\.cli-HbiUvD7o'
npm ERR! [Error: EPERM: operation not permitted, rename 'C:\Users\andre\AppData\Roaming\npm\node_modules\@aws-amplify\cli' -> 'C:\Users\andre\AppData\Roaming\npm\node_modules\@aws-amplify\.cli-HbiUvD7o'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'rename',
npm ERR! path: 'C:\\Users\\andre\\AppData\\Roaming\\npm\\node_modules\\@aws-amplify\\cli',
npm ERR! dest: 'C:\\Users\\andre\\AppData\\Roaming\\npm\\node_modules\\@aws-amplify\\.cli-HbiUvD7o'
npm ERR! }
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.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\andre\AppData\Local\npm-cache\_logs\2021-01-09T01_29_15_042Z-debug.log
I have tried to disable Windows Defender, run PowerShell as administrator, use CMD instead of PowerShell, clean npm cache, use --unsafe-perm=true. Nothing did work.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
'amplify' is not recognized as an internal or external command
Open your terminal and install @aws-amplify/cli globally by running the following command. shell. Copied! npm install -g @ ...
Read more >aws amplify cli installation error on windows - Stack Overflow
I'm trying to install aws amplify cli on windows. Having stuck on the below screen while run "npm install -g @aws-amplify/cli" command.
Read more >Get started - Installation - AWS Amplify Docs
Watch the video below to learn how to install and configure the Amplify CLI or skip to the next section to follow the...
Read more >aws-amplify - npm
AWS Amplify is a JavaScript library for frontend and mobile developers building cloud-enabled applications. The library is a declarative ...
Read more >AWS Amplify CLI Installation Guide (M1/M2 2022 Mac Edition)
amplify add auth : configure an AWS Cognito User Pool and methods for ... the amplify CLI with sudo if you can't install...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok, the problem solved by (surprise-surprise) reinstall Windows 😒 After it Amplify CLI installed as expected, but installation took about 15 minutes
This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server
*-help
channels for those types of questions.