Open SimonSiefke opened 1 year ago
git clone git@github.com:Perfect7M/taurine.git && cd taurine && pnpm install && npm run dev
npm run dev > taurine@0.1.0 dev > run-p server:dev app:dev > taurine@0.1.0 server:dev > node scripts/watch-server.js > taurine@0.1.0 app:dev > vite --config vite.config.ts - [TAURINE] Building server... VITE v3.0.2 ready in 478 ms ➜ Local: http://localhost:1420/ ➜ Network: use --host to expose ✖ [TAURINE] Cannot build server /home/simon/.cache/repos/taurine/node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js:60 error = new Error(message); ^ Error: Command failed with exit code 2: node_modules/.bin/pkg package.json --output src-tauri/binaries/app > pkg@5.8.0 > Targets not specified. Assuming: node20-linux-x64 > Error! No available node version satisfies 'node20' at makeError (/home/simon/.cache/repos/taurine/node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js:60:11) at handlePromise (/home/simon/.cache/repos/taurine/node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js:118:26) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async main (file:///home/simon/.cache/repos/taurine/scripts/build-server.js:50:5) at async oraPromise (file:///home/simon/.cache/repos/taurine/node_modules/.pnpm/ora@6.1.2/node_modules/ora/index.js:368:18) { shortMessage: 'Command failed with exit code 2: node_modules/.bin/pkg package.json --output src-tauri/binaries/app', command: 'node_modules/.bin/pkg package.json --output src-tauri/binaries/app', escapedCommand: '"node_modules/.bin/pkg" package.json --output "src-tauri/binaries/app"', exitCode: 2, signal: undefined, signalDescription: undefined, stdout: '> pkg@5.8.0\n' + '> Targets not specified. Assuming:\n' + ' node20-linux-x64\n' + "> Error! No available node version satisfies 'node20'", stderr: '', failed: true, timedOut: false, isCanceled: false, killed: false }
When running npm run dev, the app launches and no error is shown
npm run dev
When running npm run dev, an error is shown No available node version satisfies 'node20'
No available node version satisfies 'node20'
I believe node20 has the pkg package functionality built in. I presume it will be deprecated.
pkg
https://nodejs.org/api/single-executable-applications.html
Reproduction steps
Output
Expected behaviour
When running
npm run dev
, the app launches and no error is shownActual behaviour
When running
npm run dev
, an error is shownNo available node version satisfies 'node20'