René's URL Explorer Experiment


Title: Can't install with NPM (Workaround: use yarn instead) · Issue #5174 · coder/code-server · GitHub

Open Graph Title: Can't install with NPM (Workaround: use yarn instead) · Issue #5174 · coder/code-server

X Title: Can't install with NPM (Workaround: use yarn instead) · Issue #5174 · coder/code-server

Description: Is there an existing issue for this? I have searched the existing issues OS/Web Information OS: Ubuntu code-server --version: 4.4.0 Running on Raspberry Pi 4 on Ubuntu 20.10 Steps to Reproduce run command sudo npm i -g code-server error ...

Open Graph Description: Is there an existing issue for this? I have searched the existing issues OS/Web Information OS: Ubuntu code-server --version: 4.4.0 Running on Raspberry Pi 4 on Ubuntu 20.10 Steps to Reproduce run ...

X Description: Is there an existing issue for this? I have searched the existing issues OS/Web Information OS: Ubuntu code-server --version: 4.4.0 Running on Raspberry Pi 4 on Ubuntu 20.10 Steps to Reproduce run ...

Opengraph URL: https://github.com/coder/code-server/issues/5174

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Can't install with NPM (Workaround: use yarn instead)","articleBody":"### Is there an existing issue for this?\n\n- [X] I have searched the existing issues\n\n### OS/Web Information\n\n- OS: Ubuntu\r\n- `code-server --version`: 4.4.0\r\nRunning on Raspberry Pi 4 on Ubuntu 20.10 \r\n\n\n### Steps to Reproduce\n\n1. run command `sudo npm i -g code-server`\r\n2. error appears when installing\r\n\n\n### Expected\n\ncode-server should install and NPM should not log any errors.\n\n### Actual\n\nNPM gives an installation error.\n\n### Logs\n\n```\r\nnpm ERR! code 1\r\nnpm ERR! path /usr/local/lib/node_modules/code-server/node_modules/argon2\r\nnpm ERR! command failed\r\nnpm ERR! command sh -c node-gyp rebuild\r\nnpm ERR! gyp info it worked if it ends with ok\r\nnpm ERR! gyp info using node-gyp@9.0.0\r\nnpm ERR! gyp info using node@16.15.0 | linux | arm\r\nnpm ERR! gyp info find Python using Python version 3.9.7 found at \"/usr/bin/python3\"\r\nnpm ERR! gyp info spawn /usr/bin/python3\r\nnpm ERR! gyp info spawn args [\r\nnpm ERR! gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',\r\nnpm ERR! gyp info spawn args   'binding.gyp',\r\nnpm ERR! gyp info spawn args   '-f',\r\nnpm ERR! gyp info spawn args   'make',\r\nnpm ERR! gyp info spawn args   '-I',\r\nnpm ERR! gyp info spawn args   '/usr/local/lib/node_modules/code-server/node_modules/argon2/build/config.gypi',\r\nnpm ERR! gyp info spawn args   '-I',\r\nnpm ERR! gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',\r\nnpm ERR! gyp info spawn args   '-I',\r\nnpm ERR! gyp info spawn args   '/root/.cache/node-gyp/16.15.0/include/node/common.gypi',\r\nnpm ERR! gyp info spawn args   '-Dlibrary=shared_library',\r\nnpm ERR! gyp info spawn args   '-Dvisibility=default',\r\nnpm ERR! gyp info spawn args   '-Dnode_root_dir=/root/.cache/node-gyp/16.15.0',\r\nnpm ERR! gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',\r\nnpm ERR! gyp info spawn args   '-Dnode_lib_file=/root/.cache/node-gyp/16.15.0/\u003c(target_arch)/node.lib',\r\nnpm ERR! gyp info spawn args   '-Dmodule_root_dir=/usr/local/lib/node_modules/code-server/node_modules/argon2',\r\nnpm ERR! gyp info spawn args   '-Dnode_engine=v8',\r\nnpm ERR! gyp info spawn args   '--depth=.',\r\nnpm ERR! gyp info spawn args   '--no-parallel',\r\nnpm ERR! gyp info spawn args   '--generator-output',\r\nnpm ERR! gyp info spawn args   'build',\r\nnpm ERR! gyp info spawn args   '-Goutput_dir=.'\r\nnpm ERR! gyp info spawn args ]\r\nnpm ERR! node:internal/modules/cjs/loader:936\r\nnpm ERR!   throw err;\r\nnpm ERR!   ^\r\nnpm ERR! \r\nnpm ERR! Error: Cannot find module 'node-addon-api'\r\nnpm ERR! Require stack:\r\nnpm ERR! - /usr/local/lib/node_modules/code-server/node_modules/argon2/[eval]\r\nnpm ERR!     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)\r\nnpm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:778:27)\r\nnpm ERR!     at Module.require (node:internal/modules/cjs/loader:1005:19)\r\nnpm ERR!     at require (node:internal/modules/cjs/helpers:102:18)\r\nnpm ERR!     at [eval]:1:1\r\nnpm ERR!     at Script.runInThisContext (node:vm:129:12)\r\nnpm ERR!     at Object.runInThisContext (node:vm:305:38)\r\nnpm ERR!     at node:internal/process/execution:76:19\r\nnpm ERR!     at [eval]-wrapper:6:22\r\nnpm ERR!     at evalScript (node:internal/process/execution:75:60) {\r\nnpm ERR!   code: 'MODULE_NOT_FOUND',\r\nnpm ERR!   requireStack: [\r\nnpm ERR!     '/usr/local/lib/node_modules/code-server/node_modules/argon2/[eval]'\r\nnpm ERR!   ]\r\nnpm ERR! }\r\nnpm ERR! gyp: Call to 'node -p \"require('node-addon-api').include\"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp\r\nnpm ERR! gyp ERR! configure error \r\nnpm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1\r\nnpm ERR! gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:261:16)\r\nnpm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:527:28)\r\nnpm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)\r\nnpm ERR! gyp ERR! System Linux 5.13.0-1025-raspi\r\nnpm ERR! gyp ERR! command \"/usr/local/bin/node\" \"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"\r\nnpm ERR! gyp ERR! cwd /usr/local/lib/node_modules/code-server/node_modules/argon2\r\nnpm ERR! gyp ERR! node -v v16.15.0\r\nnpm ERR! gyp ERR! node-gyp -v v9.0.0\r\nnpm ERR! gyp ERR! not ok\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR!     /root/.npm/_logs/2022-05-06T21_41_52_086Z-debug-0.log\r\n```\n\n### Screenshot/Video\n\n_No response_\n\n### Does this issue happen in VS Code?\n\n- [X] I cannot reproduce this in VS Code.\n\n### Are you accessing code-server over HTTPS?\n\n- [X] I am using HTTPS.\n\n### Notes\n\nNode Version: 16.15.0\r\nNPM Version: 8.5.5\r\nRunning on a Raspberry Pi 4","author":{"url":"https://github.com/U5B","@type":"Person","name":"U5B"},"datePublished":"2022-05-06T21:50:53Z","url":"https://github.com/coder/code-server/issues/5174"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:80055194-9f70-5242-c61f-e8848e945b44
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA94A:2DBB21:2CEE8E9:3BFEA95:6B01D467
html-safe-noncea12c9770e8ffaa4a6673d8a3f4efbe5de597d5aca15cfeb02a6beb853cb73666
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTRBOjJEQkIyMToyQ0VFOEU5OjNCRkVBOTU6NkIwMUQ0NjciLCJ2aXNpdG9yX2lkIjoiNTA0NTcxNDcwMDUyOTE2MTMyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac90711327f2a99530bfd5a352c78e75649e767ef6c99b68cb2ff37753f9490ca4
hovercard-subject-tagissue:1228413300
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/code-server/5174/issue_layout
twitter:imagehttps://opengraph.githubassets.com/99f625ce6f2b32d53f3005727a70945b07872a7ca8e605ef95adc5e8c8ff5915/coder/code-server/issues/5174
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/99f625ce6f2b32d53f3005727a70945b07872a7ca8e605ef95adc5e8c8ff5915/coder/code-server/issues/5174
og:image:altIs there an existing issue for this? I have searched the existing issues OS/Web Information OS: Ubuntu code-server --version: 4.4.0 Running on Raspberry Pi 4 on Ubuntu 20.10 Steps to Reproduce run ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameU5B
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/coder/code-server git https://github.com/coder/code-server.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id172953845
octolytics-dimension-repository_nwocoder/code-server
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id172953845
octolytics-dimension-repository_network_root_nwocoder/code-server
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/coder/code-server/issues/5174#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcode-server%2Fissues%2F5174
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcode-server%2Fissues%2F5174
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=coder%2Fcode-server
Reloadhttps://github.com/coder/code-server/issues/5174
Reloadhttps://github.com/coder/code-server/issues/5174
Reloadhttps://github.com/coder/code-server/issues/5174
coderhttps://github.com/coder
code-serverhttps://github.com/coder/code-server
Codehttps://github.com/coder/code-server
Issues147 (147)https://github.com/coder/code-server/issues
Pull requests17 (17)https://github.com/coder/code-server/pulls
Discussionshttps://github.com/coder/code-server/discussions
Actionshttps://github.com/coder/code-server/actions
Projectshttps://github.com/coder/code-server/projects
Security and quality3 (3)https://github.com/coder/code-server/security
Insightshttps://github.com/coder/code-server/insights
https://github.com/coder/code-server
New issuehttps://github.com/login?return_to=https://github.com/coder/code-server/issues/5174
New issuehttps://github.com/login?return_to=https://github.com/coder/code-server/issues/5174
Can't install with NPM (Workaround: use yarn instead)https://github.com/coder/code-server/issues/5174#top
https://github.com/edvincent
https://github.com/code-asher
bugSomething isn't workinghttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22bug%22
August 2022https://github.com/coder/code-server/milestone/44
https://github.com/U5B
U5Bhttps://github.com/U5B
on May 6, 2022https://github.com/coder/code-server/issues/5174#issue-1228413300
U5Bhttps://github.com/U5B
bugSomething isn't workinghttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22bug%22
triageThis issue needs to be triaged by a maintainerhttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22triage%22
on May 6, 2022https://github.com/coder/code-server/issues/5174#event-6566437115
https://github.com/U5B
U5Bhttps://github.com/U5B
on May 6, 2022https://github.com/coder/code-server/issues/5174#issuecomment-1120039859
https://github.com/jsjoeio
jsjoeiohttps://github.com/jsjoeio
on May 6, 2022https://github.com/coder/code-server/issues/5174#issuecomment-1120052642
@edvincenthttps://github.com/edvincent
https://github.com/edvincent
edvincenthttps://github.com/edvincent
on May 9, 2022https://github.com/coder/code-server/issues/5174#issuecomment-1121214409
#5071https://github.com/coder/code-server/pull/5071
U5Bhttps://github.com/U5B
on May 9, 2022https://github.com/coder/code-server/issues/5174#event-6574753377
https://github.com/jsjoeio
jsjoeiohttps://github.com/jsjoeio
on May 9, 2022https://github.com/coder/code-server/issues/5174#issuecomment-1121588077
@edvincenthttps://github.com/edvincent
https://github.com/whschultz
whschultzhttps://github.com/whschultz
on May 12, 2022https://github.com/coder/code-server/issues/5174#issuecomment-1125478182
https://github.com/Atralupus
Atralupushttps://github.com/Atralupus
on Jun 23, 2022https://github.com/coder/code-server/issues/5174#issuecomment-1164680058
https://coder.com/docs/code-server/latest/install#raspberry-pihttps://coder.com/docs/code-server/latest/install#raspberry-pi
https://github.com/jsjoeio
jsjoeiohttps://github.com/jsjoeio
on Jun 23, 2022https://github.com/coder/code-server/issues/5174#issuecomment-1164697556
#5071https://github.com/coder/code-server/pull/5071
Atralupushttps://github.com/Atralupus
on Jun 24, 2022https://github.com/coder/code-server/issues/5174#event-6870757468
Add coder#5174 comment on rsp installhttps://github.com/Atralupus/code-server/commit/aed7954000f662783e9e60ed1605d763f6857999
coder#5174https://github.com/coder/code-server/issues/5174
aed7954https://github.com/Atralupus/code-server/commit/aed7954000f662783e9e60ed1605d763f6857999
Add coder#5174 comment on rsp installhttps://github.com/Atralupus/code-server/commit/4aed00535dc1b02e01fa558f6499e6ad7b217514
coder#5174https://github.com/coder/code-server/issues/5174
4aed005https://github.com/Atralupus/code-server/commit/4aed00535dc1b02e01fa558f6499e6ad7b217514
https://github.com/Atralupus
Atralupushttps://github.com/Atralupus
on Jun 24, 2022https://github.com/coder/code-server/issues/5174#issuecomment-1165080418
#5071https://github.com/coder/code-server/pull/5071
jsjoeiohttps://github.com/jsjoeio
on Aug 1, 2022https://github.com/coder/code-server/issues/5174#event-7102911525
Add #5174 comment on rsp install (#5294)https://github.com/coder/code-server/commit/da9e72cb691e128f4b6801da0f6525b6587ea760
#5174https://github.com/coder/code-server/issues/5174
#5294https://github.com/coder/code-server/pull/5294
da9e72chttps://github.com/coder/code-server/commit/da9e72cb691e128f4b6801da0f6525b6587ea760
https://github.com/edvincent
edvincenthttps://github.com/edvincent
on Aug 20, 2022https://github.com/coder/code-server/issues/5174#issuecomment-1221179227
#5071https://github.com/coder/code-server/pull/5071
npm/cli#5325https://github.com/npm/cli/issues/5325
jsjoeiohttps://github.com/jsjoeio
triageThis issue needs to be triaged by a maintainerhttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22triage%22
on Aug 22, 2022https://github.com/coder/code-server/issues/5174#event-7234293006
jsjoeiohttps://github.com/jsjoeio
August 2022https://github.com/coder/code-server/milestone/44
on Aug 22, 2022https://github.com/coder/code-server/issues/5174#event-7234293347
jsjoeiohttps://github.com/jsjoeio
edvincenthttps://github.com/edvincent
code-asherhttps://github.com/code-asher
on Aug 22, 2022https://github.com/coder/code-server/issues/5174#event-7234295093
https://github.com/edvincent
edvincenthttps://github.com/edvincent
on Aug 22, 2022https://github.com/coder/code-server/issues/5174#issuecomment-1223138824
https://github.com/edvincent
edvincenthttps://github.com/edvincent
on Aug 22, 2022https://github.com/coder/code-server/issues/5174#issuecomment-1223166195
npm/cli#5325https://github.com/npm/cli/issues/5325
https://github.com/jsjoeio
jsjoeiohttps://github.com/jsjoeio
on Aug 22, 2022https://github.com/coder/code-server/issues/5174#issuecomment-1223285935
@edvincenthttps://github.com/edvincent
https://github.com/jsjoeio
jsjoeiohttps://github.com/jsjoeio
on Aug 23, 2022https://github.com/coder/code-server/issues/5174#issuecomment-1224762724
#5071https://github.com/coder/code-server/pull/5071
jsjoeiohttps://github.com/jsjoeio
completedhttps://github.com/coder/code-server/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 23, 2022https://github.com/coder/code-server/issues/5174#event-7245137196
Sign up for freehttps://github.com/signup?return_to=https://github.com/coder/code-server/issues/5174
Sign in to commenthttps://github.com/login?return_to=https://github.com/coder/code-server/issues/5174
code-asherhttps://github.com/code-asher
edvincenthttps://github.com/edvincent
bugSomething isn't workinghttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22bug%22
August 2022https://github.com/coder/code-server/milestone/44
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.