Skip to content
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

Building from source fails on Biome JS post install script #134

Open
rlorenzoleal opened this issue Jul 21, 2024 · 4 comments
Open

Building from source fails on Biome JS post install script #134

rlorenzoleal opened this issue Jul 21, 2024 · 4 comments

Comments

@rlorenzoleal
Copy link

I'm following the installation from source from the read me. The Biome JS post install script fails with:

[cargo-make] INFO - Running Task: install-aquascope
ws/pnpm
│ Scope: all 4 workspace projects
│ Lockfile is up to date, resolution step is skipped
│ Progress: resolved 1, reused 0, downloaded 0, added 0
│ Packages: +494
│ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
│ Progress: resolved 494, reused 283, downloaded 0, added 0
│ Progress: resolved 494, reused 494, downloaded 0, added 492
│ Progress: resolved 494, reused 494, downloaded 0, added 494, done
│ .../node_modules/puppeteer postinstall$ node install.js
│ .../node_modules/@biomejs/biome postinstall$ node scripts/postinstall.js
│ .../node_modules/@biomejs/biome postinstall: /home/rlorenzoleal/Code/rust/aquascope/frontend/node_modules/.pnpm/@[email protected]/node_modules/@biomejs/biome/scripts/postinstall.js:41
│ .../node_modules/@biomejs/biome postinstall: 		? PLATFORMS?.["linux-musl"]?.[arch]
│ .../node_modules/@biomejs/biome postinstall: 		            ^
│ .../node_modules/@biomejs/biome postinstall: SyntaxError: Unexpected token '.'
│ .../node_modules/@biomejs/biome postinstall:     at wrapSafe (internal/modules/cjs/loader.js:915:16)
│ .../node_modules/@biomejs/biome postinstall:     at Module._compile (internal/modules/cjs/loader.js:963:27)
│ .../node_modules/@biomejs/biome postinstall:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
│ .../node_modules/@biomejs/biome postinstall:     at Module.load (internal/modules/cjs/loader.js:863:32)
│ .../node_modules/@biomejs/biome postinstall:     at Function.Module._load (internal/modules/cjs/loader.js:708:14)
│ .../node_modules/@biomejs/biome postinstall:     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
│ .../node_modules/@biomejs/biome postinstall:     at internal/main/run_main_module.js:17:47
│ .../node_modules/@biomejs/biome postinstall: Failed
│  ELIFECYCLE  Command failed with exit code 1.
└─ finished
Depot failed with the error: Process `pnpm` exited with non-zero exit code: 1
Preparing a sysroot for Miri (target: x86_64-unknown-linux-gnu)...
A sysroot for Miri is now available in `/home/rlorenzoleal/.cache/miri`.
error: `/home/rlorenzoleal/Code/rust/aquascope/frontend/crates/aquascope_front` is not a directory. --path must point to a directory containing a Cargo.toml file.
Error while executing command, exit code: 101

I'm running on Ubuntu 22.04.4 LTS in a x86 machine

@willcrichton
Copy link
Collaborator

If you run ~/.local/bin/pnpm install inside the frontend directory, does that work?

@rlorenzoleal
Copy link
Author

Same issue

~/C/r/aquascope/frontend main ❱ ~/.local/bin/pnpm install
Scope: all 4 workspace projects
Lockfile is up to date, resolution step is skipped
Packages: +494
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

   ╭─────────────────────────────────────────────────────────────────╮
   │                                                                 │
   │                Update available! 9.1.1 → 9.6.0.                 │
   │   Changelog: https://github.com/pnpm/pnpm/releases/tag/v9.6.0   │
   │         Run a script from: https://pnpm.io/installation         │
   │                                                                 │
   │     Follow @pnpmjs for updates: https://twitter.com/pnpmjs      │
   │                                                                 │
   ╰─────────────────────────────────────────────────────────────────╯

Progress: resolved 494, reused 494, downloaded 0, added 0, done
node_modules/.pnpm/[email protected]/node_modules/puppeteer: Running postinstall script...
node_modules/.pnpm/@[email protected]/node_modules/@biomejs/biome: Running postinstall script, failed in 60ms
.../node_modules/@biomejs/biome postinstall$ node scripts/postinstall.js
│ /home/rlorenzoleal/Code/rust/aquascope/frontend/node_modules/.pnpm/@[email protected]/node_modules/@biomejs/biome/scripts/postinstall.js:41
│ 		? PLATFORMS?.["linux-musl"]?.[arch]
│ 		            ^
│ SyntaxError: Unexpected token '.'
│     at wrapSafe (internal/modules/cjs/loader.js:915:16)
│     at Module._compile (internal/modules/cjs/loader.js:963:27)
│     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
│     at Module.load (internal/modules/cjs/loader.js:863:32)
│     at Function.Module._load (internal/modules/cjs/loader.js:708:14)
│     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
│     at internal/main/run_main_module.js:17:47
└─ Failed in 61ms at /home/rlorenzoleal/Code/rust/aquascope/frontend/node_modules/.pnpm/@[email protected]/node_modules/@biomejs/biome
 ELIFECYCLE  Command failed with exit code 1.

@mclaudt
Copy link

mclaudt commented Oct 21, 2024

Same issue, it seems to be the old version of nodejs.
Optional chaining ?. operator is not supported on default node version 12.* that goes with Ubuntu 22.
I updated node version to 16 using nvm, and uninstalled nodejs from apt. And it worked.

@MoonBall
Copy link

Same issue, not work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants