mirror of
https://github.com/Mintplex-Labs/vector-admin.git
synced 2026-07-19 13:16:03 -04:00
yarn dev:setup produces "vector-admin/backend/node_modules/@prisma/engines: Command failed." #47
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mjackstewart on GitHub (Dec 9, 2023).
Hello!
I'm attempting to setup vector-admin on an Ubuntu VM running on WSL 2.
This is the Ubuntu release information:
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
I installed the most recent version of yarn with this command:
sudo apt install yarn
This also installed nodejs.
So far I've had two problems with the very first command, yarn dev:setup:
yarn run v1.22.19 error vector-data-management-system@0.0.2: The engine "node" is incompatible with this module. Expected version ">=18". Got "12.22.9" error Commands cannot run with an incompatible environment. i
I was able to deal with that by issuing this command:
yarn config set ignore-engines true
error /mnt/c/Development/Projects/Python/vectoradmin/vector-admin/backend/node_modules/@prisma/engines: Command failed.
Exit code: 1
Command: node scripts/postinstall.js
Arguments:
Directory: /mnt/c/Development/Projects/Python/vectoradmin/vector-admin/backend/node_modules/@prisma/engines
Output:
/mnt/c/Development/Projects/Python/vectoradmin/vector-admin/backend/node_modules/@prisma/engines/dist/scripts/postinstal l.js:22549
return this[INTERNAL2].defaultPort ?? (this.protocol === "https:" ? 443 : 80);
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 Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (/mnt/c/Development/Projects/Python/vectoradmin/vector-admin/backend/node_modules/@prisma/engi
Any ideas?
Most cordially,
Jack Stewart
@timothycarambat commented on GitHub (Dec 10, 2023):
Hey Jack,
Definitely don't ignore engine as the some libraries (and code!) rely on the node 18+ APIs that wont be present in previous versions.
install at least Node 18.0.0 but I recommend 18.13.0. On Ubuntu Jammy you can install node+yarn using the following series of commands:
Once those are installed
cdinto the project and runyarn dev:setupagain and it will install dependencies and copy ENV files to where they need to be for minimal setup!@mjackstewart commented on GitHub (Dec 11, 2023):
Howdy, Timothy!
Thank you SO much--you're a BRO! I was looking for a vector database
administration application, and I just happened on your video. It was GREAT!
I'm curious: Was there actually a problem that you fixed, or was if
operator error (me)?
Most cordially,
Jack
Jack Stewart (he/him/his)
(812) 786-2439
On Sun, Dec 10, 2023 at 3:53 PM Timothy Carambat @.***>
wrote:
@timothycarambat commented on GitHub (Dec 11, 2023):
It was just an operator error this time :)
The issue was just using an old version of node that is incompatible with the code for this project!