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

Can't install #4899

Open
maxtimbo opened this issue Jun 30, 2024 · 4 comments
Open

Can't install #4899

maxtimbo opened this issue Jun 30, 2024 · 4 comments

Comments

@maxtimbo
Copy link

I'm getting the following error:

$ node ./bin/prepare.js 
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'commander'
Require stack:
- /home/tfinley/condo/bin/prepare.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home/tfinley/condo/bin/prepare.js:3:21)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/home/tfinley/condo/bin/prepare.js' ]
}
$ node -v
v16.20.2

I've tried to install commander globally, but that doesn't work either.

@SavelevMatthew
Copy link
Member

Hi, it seems you missed the package installation part (yarn, yarn install or similar command for another package manager)

Because commander is explicitly listed in the monorepo root dependencies list:

"commander": "^9.4.0",

@maxtimbo
Copy link
Author

maxtimbo commented Jul 1, 2024

I just tried npm install:

$ npm install
npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "link:": link:./domains

yarn gives errors as well:

$ yarn
00h00m00s 0/0: : ERROR: There are no scenarios; must have at least one.

$ yarn install
00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'install'

This is all taking place in the local repo directory that I cloned from github.

@SavelevMatthew
Copy link
Member

Seems like it's some local problem happening, you can try reinstall yarn...

https://stackoverflow.com/questions/46013544/yarn-install-command-error-no-such-file-or-directory-install

@maxtimbo
Copy link
Author

maxtimbo commented Jul 3, 2024

Alright. New errors:

$ node ./bin/prepare.js

[. . .]

--> Preparing "condo" app
------> Copying app's .env.example values to .env if not exists
------> Writing assigned urls / ports / dbs to app's .env
------> Running migration script
Error: Command failed: yarn workspace @app/condo migrate
ERROR: can't get knex schema

    at ChildProcess.exithandler (node:child_process:402:12)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1100:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)

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

No branches or pull requests

2 participants