-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Can't install with NPM (Workaround: use yarn instead) #5174
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
Comments
Installing yarn via |
Interesting! I wonder why it works with |
Because Why it started failing now is likely because of the Node 14 => 16 transition... And indirectly the fact that I completely forgot to finish #5071... Which partly was because we were trying to find a "perfect" solution... I won't get around today, but let me update that PR by tomorrow with something to unblock, and maybe we can iterate through a better solution over PRs. Maybe we should rename this current issue "Can't install with NPM" (with a workaround being "Use yarn") until then? And a new PR linked to this issue would likely be part of the CI workflows doing an "npm install ARTIFACT" - to catch these? |
Ah right @edvincent! Haha no worries at all. There has certainly been a lot of back and forth. I'll keep an eye on your PR. |
I was able to get it to build on a Raspberry Pi 4 using the latest npm@^6. I had problems with npm@8. |
I had the same problem, but I solved it using yarn too. https://coder.com/docs/code-server/latest/install#raspberry-pi |
I think #5071 should resolve this. PRs welcome to make any doc changes 🙏🏼 |
Thank you and I did request the PR |
Confirmed locally with the artifacts from #5071 that code-server can be installed (again) with Currently it will be in the same state as when using |
Seems to install all good as expected now :D
|
And as a good news, the bug from npm/cli#5325 doesn't seem to affect remote installs (I obviously was only testing with local packages), so the
|
woohoo! @edvincent should we close this now? |
Closing this since #5071 was merged. |
Is there an existing issue for this?
OS/Web Information
code-server --version
: 4.4.0Running on Raspberry Pi 4 on Ubuntu 20.10
Steps to Reproduce
sudo npm i -g code-server
Expected
code-server should install and NPM should not log any errors.
Actual
NPM gives an installation error.
Logs
Screenshot/Video
No response
Does this issue happen in VS Code?
Are you accessing code-server over HTTPS?
Notes
Node Version: 16.15.0
NPM Version: 8.5.5
Running on a Raspberry Pi 4
The text was updated successfully, but these errors were encountered: