-
Notifications
You must be signed in to change notification settings - Fork 365
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
netlify-cli recently failed to install on CI (docker) #1870
Comments
@eduardoboucas Adding |
Thanks, @linogaliana! We're exploring different options to avoid requiring this flag, but at least this unblocks people in the meantime. |
The workaround seems to work, until yesterday the unsafe flag was not required. So it must be due to 3.6, 3.7 or 3.7.1 release. |
It is due to some changes we've introduced in the last version. We'll be updating this issue with any updates on this topic. Until then, if you must install the CLI under the root user, we recommend that you use the flag. |
Also, happen to me when I tried to upgrade new version. Macos: Big sur 11.2 |
@noraj @tranlehaiquan @linogaliana if any of you has a chance to try this on npm 7 without the Thanks! 🙌🏻 |
But it means I had to switch from node 14 LTS to node 15 short live version. I hoped it was possible to with npm 6 too.
See default npm version for each nodejs release https://nodejs.org/en/download/releases/ |
12: Add workaround for netlify/cli#1870. r=duckinator a=duckinator Co-authored-by: Ellen Marie Dash <[email protected]>
@noraj thanks for helping us verify this. That additional installation time is introduced by a bug in npm 7. We have filed an issue with npm and a pull request is underway. |
Hello @eduardoboucas , do you have plans to fix this issue for NPM 6? |
Hi @maxim-lobanov. Our recommendation for getting around this in npm 6 is to use the Does that work for you? |
Not sure if this will help with Docker but I had the same exact issue on Ubuntu local machine. Before trying Just thought I would put this here if anyone is looking for an answer. The versions I updated to: |
husky > Setting up git hooks
Trying to install "esbuild-darwin-64" using npm Error: EACCES: permission denied, open '/usr/local/lib/node_modules/netlify-cli/node_modules/esbuild/bin/esbuild__' npm ERR! code ELIFECYCLE I got the error above and then tried System:
Still gives the warnings below even it successfully installs: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @netlify/[email protected] (node_modules/netlify-cli/node_modules/@netlify/routing-local-proxy-win32-x64): |
I am getting this error on docker. I tried with node 18 and node 16. I also tried "
|
Marking this as stale as it is is several years old. Please feel free to reopen if you are still having issues. |
Describe the bug
Installing fails on my gitlab CLI but wucess on my dev VM.
In the CI it fails on both nodejs 10.23.2 and 14.15.5. On my dev vm works with 12.16.2 and 14.15.5.
It started to happens today, I used the same command on my CI for years with nodejs 10.x.
The esbuild permission access error is weird, the difference I see is that on, my dev VM I install it as an user (with asdf but the CI (dockerized environment) seems to run as root.
To Reproduce
Steps to reproduce the behavior:
npm install netlify-cli -g
on docker imagenode:14
Configuration
N/A
Expected behavior
Install correctly.
CLI Output
See above.
Additional context
N/A
The text was updated successfully, but these errors were encountered: