amplify-js: Unable to install aws-amplify: @aws-amplify/analytics@5.2.9 is not on npm
Before opening, please confirm:
- I have searched for duplicate or closed issues and discussions.
- I have read the guide for submitting bug reports.
- I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
JavaScript Framework
Not applicable
Amplify APIs
Not applicable
Amplify Categories
Not applicable
Environment information
# Put output below this line
npx: installed 1 in 1.024s
System:
OS: Linux 5.10 Amazon Linux 2
CPU: (2) x64 Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz
Memory: 2.64 GB / 3.83 GB
Container: Yes
Shell: 4.2.46 - /bin/bash
Binaries:
Node: 14.17.0 - ~/.nvm/versions/node/v14.17.0/bin/node npm: 6.14.13 - ~/.nvm/versions/node/v14.17.0/bin/npm
npmGlobalPackages: npm: 6.14.13
pnpm: 5.18.9
serverless: 3.8.0
Describe the bug
Installing the current version of aws-amplify fails due to a dependency on @aws-amplify/analytics@5.2.9 which is not published to NPM.
Expected behavior
npm install aws-amplify should install without errors.
Reproduction steps
[ec2-user@ip-10-0-0-8 ~]$ mkdir amplify-test
[ec2-user@ip-10-0-0-8 ~]$ cd amplify-test/
[ec2-user@ip-10-0-0-8 amplify-test]$ npm install aws-amplify
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @aws-amplify/analytics@5.2.9.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'aws-amplify'
npm ERR! notarget
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ec2-user/.npm/_logs/2022-05-25T09_47_51_429Z-debug.log
[ec2-user@ip-10-0-0-8 amplify-test]$ npm install aws-amplify@4.3.24
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @aws-amplify/analytics@5.2.9.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'aws-amplify'
npm ERR! notarget
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ec2-user/.npm/_logs/2022-05-25T09_48_09_870Z-debug.log
[ec2-user@ip-10-0-0-8 amplify-test]$
Code Snippet
// Put your code below this line.
Log output
// Put your logs below this line
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
aws-amplify@4.3.24 requires @aws-amplify/analytics@5.2.9
https://github.com/aws-amplify/amplify-js/blob/aws-amplify%404.3.24/packages/aws-amplify/package.json#L37
But this is not currently (2022-05-25T09:53:30+00:00) available on NPM, the published version is 5.2.8:
https://www.npmjs.com/package/@aws-amplify/analytics
Note there was another issue yesterday regarding a previous version of aws-amplify: https://github.com/aws-amplify/amplify-js/issues/9930
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 9
- Comments: 18 (2 by maintainers)
Quick fix that’s working for me is to lock your package.json to 4.3.23
"aws-amplify": "^4.3.0" => "aws-amplify": "4.3.23"@aws-amplify/analytics@5.2.9has reappeared in NPM. The team has confirmed thataws-amplify@4.3.24installs correctly now. If you had to perform any workarounds in order to get Amplify to install correctly, you can now safely undo them.It appears this issue was caused by the following incident on NPM: https://status.npmjs.org/incidents/4zkt80fxq1nb.
The Amplify team successfully published
@aws-amplify/analytics@5.2.9on May 23rd. We confirmed that it was available in NPM and that customers were able to installaws-amplifysuccessfully. Somehow, earlier this morning (May 25th) the package disappeared from the NPM registry. We did not remove it. We’re working with NPM to understand how this could have happened.In the meantime, we’ve updated the
latesttag in NPM to point to the previous version of aws-amplify - 4.3.23 and have confirmed thatnpm i aws-amplifyis now working as expected. Please try re-installing.If you have version
aws-amplify@4.3.24explicitly listed in your package.json, please replace it with 4.3.23 and runnpm installagain. If you’re still experiencing issues after that, runrm -rf node_modules package-lock.json && npm installPlease let us know if these steps don’t resolve the issue for you.