Hello,
Not sure whats happening but I’m unable to move past the authentication stage. I keep running yarn rw setup auth dbAuth and I keep getting this error message. I also ran yarn rw info as well and is at the end of the page. Thank you in advance!
yarn run v1.22.19
rw setup auth dbAuth
Set up auth for dbAuth
Options:
--help Show help [boolean]
--version Show version number [boolean]
--cwd Working directory to use (where `redwood.toml` is located)
-f, --force Overwrite existing auth configuration
[boolean] [default: false]
-v, --verbose Log setup output [boolean] [default: false]
-w, --webauthn Include WebAuthn support (TouchID/FaceID)
[boolean] [default: null]
Also see the Redwood CLI Reference
Error: Command failed with exit code 1: yarn npm info @redwoodjs/auth-dbauth-setup --fields versions --json
error Command "npm" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
at makeError (/Users/sgr0691/Documents/side-projects/SimpleTenant/MVP/node_modules/execa/lib/error.js:60:11)
at handlePromise (/Users/sgr0691/Documents/side-projects/SimpleTenant/MVP/node_modules/execa/index.js:118:26)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async getAuthHandler (/Users/sgr0691/Documents/side-projects/SimpleTenant/MVP/node_modules/@redwoodjs/cli/dist/commands/setup/auth/auth.js:107:9)
at async Object.handler (/Users/sgr0691/Documents/side-projects/SimpleTenant/MVP/node_modules/@redwoodjs/cli/dist/commands/setup/auth/auth.js:53:21) {
shortMessage: 'Command failed with exit code 1: yarn npm info @redwoodjs/auth-dbauth-setup --fields versions --json',
command: 'yarn npm info @redwoodjs/auth-dbauth-setup --fields versions --json',
escapedCommand: 'yarn npm info "@redwoodjs/auth-dbauth-setup" --fields versions --json',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: 'info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.',
stderr: 'error Command "npm" not found.',
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn rw info message:
System:
OS: macOS 12.6
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.15.0 - /var/folders/__/qt75nhp9689813_3j5bjb0t40000gn/T/yarn--1684898288353-0.04903613870848833/node
Yarn: 1.22.19 - /var/folders/__/qt75nhp9689813_3j5bjb0t40000gn/T/yarn--1684898288353-0.04903613870848833/yarn
Databases:
SQLite: 3.37.0 - /usr/bin/sqlite3
Browsers:
Chrome: 113.0.5672.126
Firefox: 111.0
Safari: 16.2
npmPackages:
@redwoodjs/core: 5.2.2 => 5.2.2