Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

amazon linux 2 - npm WARN deprecated puppeteer@10.4.0: Version no longer supported. Upgrade to @latest #244

Open
teksaport opened this issue Sep 3, 2022 · 2 comments

Comments

@teksaport
Copy link

teksaport commented Sep 3, 2022

I'm trying to install aws-azure-login on the most current amazon linux 2 (Karoo), and it won't. I get several WARN statements and even after upgrading puppeteer to the @latest it still gives the WARN about 10.4.0. So there must be something hard coded to use 10.4.0 right? I found this in the package.json which lists dependancies "puppeteer": "^10.0.0".
But then I found node_modules/puppeteer/CHANGELOG.md and it has this line.
"## [10.4.0] https://github.com/puppeteer/puppeteer/compare/v10.2.0...v10.4.0 2021-09-21"
I'm not sure why it won't install or what I can do about it.
I'm using this as the installation guide
https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/setting-up-node-on-ec2-instance.html

After node install: Now using node v16.15.0 (npm v8.5.5)
And then:
[root@localhost ~]# npm install -g aws-azure-login
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated puppeteer@10.4.0: Version no longer supported. Upgrade to @latest
npm notice
npm notice New minor version of npm available! 8.5.5 -> 8.19.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.19.1
npm notice Run npm install -g npm@8.19.1 to update!
npm notice
npm ERR! code 127
npm ERR! path /root/.nvm/versions/node/v16.15.0/lib/node_modules/aws-azure-login/node_modules/puppeteer
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! sh: node: command not found

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-09-03T02_52_43_769Z-debug-0.log

Last several lines of log file:
1645 info run puppeteer@10.4.0 install node_modules/aws-azure-login/node_modules/puppeteer node install.js
1646 info run puppeteer@10.4.0 install { code: 127, signal: null }
1647 timing reify:rollback:createSparse Completed in 364ms
1648 timing reify:rollback:retireShallow Completed in 0ms
1649 timing command:install Completed in 11598ms
1650 notice
1650 notice New ^[[33mminor^[[39m version of npm available! ^[[31m8.5.5^[[39m -> ^[[32m8.19.1^[[39m
1650 notice Changelog: ^[[36mhttps://github.com/npm/cli/releases/tag/v8.19.1^[[39m
1650 notice Run ^[[32mnpm install -g npm@8.19.1^[[39m to update!
1650 notice
1651 verbose stack Error: command failed
1651 verbose stack at ChildProcess. (/root/.nvm/versions/node/v16.15.0/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/index.js:64:27)
1651 verbose stack at ChildProcess.emit (node:events:527:28)
1651 verbose stack at maybeClose (node:internal/child_process:1092:16)
1651 verbose stack at Socket. (node:internal/child_process:451:11)
1651 verbose stack at Socket.emit (node:events:527:28)
1651 verbose stack at Pipe. (node:net:709:12)
1652 verbose pkgid puppeteer@10.4.0
1653 verbose cwd /root
1654 verbose Linux 4.14.290-217.505.amzn2.x86_64
1655 verbose argv "/root/.nvm/versions/node/v16.15.0/bin/node" "/root/.nvm/versions/node/v16.15.0/bin/npm" "install" "-g" "aws-azure-login"
1656 verbose node v16.15.0
1657 verbose npm v8.5.5
1658 error code 127
1659 error path /root/.nvm/versions/node/v16.15.0/lib/node_modules/aws-azure-login/node_modules/puppeteer
1660 error command failed
1661 error command sh -c node install.js
1662 error sh: node: command not found
1663 verbose exit 127
1664 timing npm Completed in 11716ms
1665 verbose unfinished npm timer reify 1662173563883
1666 verbose unfinished npm timer reify:build 1662173575098
1667 verbose unfinished npm timer build 1662173575098
1668 verbose unfinished npm timer build:deps 1662173575099
1669 verbose unfinished npm timer build:run:install 1662173575107
1670 verbose unfinished npm timer build:run:install:node_modules/aws-azure-login/node_modules/puppeteer 1662173575107
1671 verbose code 127

Thank you

@beingamarnath
Copy link

Is there a way to install this package in this situation ??

@teksaport
Copy link
Author

Is there a way to install this package in this situation ??

I had to copy it from a working server onto the newer server where it wouldn't install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants