question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't install amplify globally on windows

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Rusinascommented, Jan 13, 2021

Ok, the problem solved by (surprise-surprise) reinstall Windows 😒 After it Amplify CLI installed as expected, but installation took about 15 minutes

0reactions
github-actions[bot]commented, May 25, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found