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
Domain: github.com
{"@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-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:80055194-9f70-5242-c61f-e8848e945b44 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A94A:2DBB21:2CEE8E9:3BFEA95:6B01D467 |
| html-safe-nonce | a12c9770e8ffaa4a6673d8a3f4efbe5de597d5aca15cfeb02a6beb853cb73666 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTRBOjJEQkIyMToyQ0VFOEU5OjNCRkVBOTU6NkIwMUQ0NjciLCJ2aXNpdG9yX2lkIjoiNTA0NTcxNDcwMDUyOTE2MTMyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 90711327f2a99530bfd5a352c78e75649e767ef6c99b68cb2ff37753f9490ca4 |
| hovercard-subject-tag | issue:1228413300 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/code-server/5174/issue_layout |
| twitter:image | https://opengraph.githubassets.com/99f625ce6f2b32d53f3005727a70945b07872a7ca8e605ef95adc5e8c8ff5915/coder/code-server/issues/5174 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/99f625ce6f2b32d53f3005727a70945b07872a7ca8e605ef95adc5e8c8ff5915/coder/code-server/issues/5174 |
| og:image:alt | 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 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | U5B |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/code-server git https://github.com/coder/code-server.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 172953845 |
| octolytics-dimension-repository_nwo | coder/code-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 172953845 |
| octolytics-dimension-repository_network_root_nwo | coder/code-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width