| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Add --legacy-peer-deps to deal with weird npm issue with vscode dependencies. See: https://stackoverflow.com/a/66620869/3015595
|
|
||
| pushd "$RELEASE_PATH" | ||
| yarn --production --frozen-lockfile | ||
| npm install --unsafe-perm --omit=dev |
There was a problem hiding this comment.
That'll help us catch this bug in the future.
Sorry, something went wrong.
There was a problem hiding this comment.
Sorry I didn't get to do this yet... It was on my to-do list from #5071 (comment) but hadn't gotten to it yet...
Sorry, something went wrong.
There was a problem hiding this comment.
Oh don't worry! All good 👍🏼 We didn't realize it would cause other issues so no worries at all. At least it's only npm!
Sorry, something went wrong.
There was a problem hiding this comment.
I vaguely recall some issue with npm ci and optional dependencies; does that ring any bells?
Sorry, something went wrong.
There was a problem hiding this comment.
I think those were fixed with the latest versions of NPM, namely NPM 8 which we have since we bumped to NodeJS 16?
Sorry, something went wrong.
There was a problem hiding this comment.
Ahh gotcha!
Sorry, something went wrong.
Codecov ReportAdditional details and impacted files @@ Coverage Diff @@
## main #5533 +/- ##
=======================================
Coverage 72.44% 72.44%
=======================================
Files 30 30
Lines 1673 1673
Branches 366 366
=======================================
Hits 1212 1212
Misses 398 398
Partials 63 63 Continue to review full report at Codecov.
|
Sorry, something went wrong.
|
✨ code-server dev build published to npm for PR #5533!
To install in a local project, run: npm install @coder/code-server-pr@5533
To install globally, run: npm install -g @coder/code-server-pr@5533
|
Sorry, something went wrong.
|
|
||
| pushd "$RELEASE_PATH" | ||
| yarn --production --frozen-lockfile | ||
| npm install --unsafe-perm --omit=dev |
There was a problem hiding this comment.
Sorry I didn't get to do this yet... It was on my to-do list from #5071 (comment) but hadn't gotten to it yet...
Sorry, something went wrong.
| exit 1 | ||
| else | ||
| npm install --omit=dev | ||
| npm install --unsafe-perm --legacy-peer-deps --omit=dev |
There was a problem hiding this comment.
| npm install --unsafe-perm --legacy-peer-deps --omit=dev | |
| # HACK: NPM's use of semver doesn't like resolving some peerDependencies that vscode (upstream) brings in the form of pre-releases. | |
| # The legacy behavior doesn't complain about pre-releases being used, falling back to that for now. | |
| # See https://github.com/coder/code-server/pull/5071 | |
| npm install --unsafe-perm --legacy-peer-deps --omit=dev |
Sorry, something went wrong.
|
|
||
| pushd "$RELEASE_PATH" | ||
| yarn --production --frozen-lockfile | ||
| npm install --unsafe-perm --omit=dev |
There was a problem hiding this comment.
| npm install --unsafe-perm --omit=dev | |
| npm ci --unsafe-perm --omit=dev |
npm ci is the equivalent of yarn --frozen-lockfile I believe?
Sorry, something went wrong.
|
Had the same failure describe in #5530 after installing the with npm install -g @coder/code-server-pr@4.6.1-1-5533-8a151bd6cb529b3df463050920a16389b0b66453 --unsafe-perm 😬 But cd'ing to lib/vscode and running the command with the --legacy-peer-deps flag did work... Not sure what's up. |
Sorry, something went wrong.
|
Nice suggestions! Since it's late afternoon Friday, I think we're going to make those in a followup PR so that we can get these artifacts and fix on npm asap |
Sorry, something went wrong.
|
Ok, npm install -g @coder/code-server-pr@4.6.1-1-5533-8a151bd6cb529b3df463050920a16389b0b66453 --unsafe-perm actually works fine. I was following https://coder.com/docs/code-server/latest/npm#ubuntu-debian which doesn't (anymore) specify that libsecret-1-dev should be installed - so it was failing, but not because of the xterm problem. So all good! Also, NPM 8 tip: the logging of nested scripts needs the --foreground-scripts flag to be passed to be able to see the logs of nested postinstalls. See npm doc (Which BTW, libsecret-1-dev is technically not required, because even though keytar is a required dependency, vscode soft-fails - i.e. fallbacks to an in-memory secret store - if it can't find keytar) |
Sorry, something went wrong.
Bad new for me the version of the code-server also gives the same error on my side. I'm using a raspberry pi over ipad usb3. |
Sorry, something went wrong.
|
@ravi0the0sun If you install using --foreground-scripts, any ERR logs show up? |
Sorry, something went wrong.
Package libsecret-1 was not found in the pkg-config search path.yNode:node_modules/@coder/code-server-pr/lib/vscode/node_modules/@microsoft/1ds-core-js Completed in 2876ms Perhaps you should add the directory containing `libsecret-1.pc' to the PKG_CONFIG_PATH environment variable No package 'libsecret-1' found gyp: Call to 'pkg-config --cflags libsecret-1' returned exit status 1 while in binding.gyp. while trying to load binding.gyp gyp ERR! configure error ify:pem: timing reifyNode:node_modules/@coder/code-server-pr/node_modules/ast-types Completed in 2283ms gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:261:16) gyp ERR! stack at ChildProcess.emit (node:events:513:28) gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) ERR! System Linux 5.15.61-v8+y:@microsoft/1ds-post-js: timing reifyNode:node_modules/@coder/code-server-pr/lib/vscode/node_modules/@microsoft/1ds-core-js Completed in 2876ms gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/lib/node_modules/@coder/code-server-pr/lib/vscode/node_modules/keytar gyp ERR! node -v v16.17.0 gyp ERR! node-gyp -v v9.0.0 gyp ERR! not ok npm ERR! code 1 npm ERR! path /usr/lib/node_modules/@coder/code-server-pr/lib/vscode/node_modules/keytar npm ERR! command failed npm ERR! command sh /tmp/install-2acda67b.sh npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2022-09-03T09_01_13_943Z-debug-0.log im just posting the error part cuz the entire thing was too damn big i hope this helps Update: after installing sudo apt install libsecret-1-dev it seems to work now |
Sorry, something went wrong.
|
@edvincent i will make your changes in a followup PR and tag you for review |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.