-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
I get this in the terminal when trying to setup the React Hook course:
➜ react-hooks git:(main) npm run setup
setup
node ./epicshop/setup.js
Running the following command: npx --yes "https://gist.github.com/kentcdodds/bb452ffe53a5caa3600197e1d8005733" -q
Ensuring the correct versions of tools are installed on this computer.
Running the following command: npx --yes "https://gist.github.com/kentcdodds/abbc32701f78fa70298d444c2303b6d9"
✅ Success: System Validation
▶️ Starting: Dependency Installation
Installing third party code dependencies so the workshop works properly on this computer.
Running the following command: npm install --legacy-peer-deps --no-save
added 663 packages, and audited 664 packages in 2s
308 packages are looking for funding
run npm fund
for details
2 vulnerabilities (1 low, 1 moderate)
To address all issues, run:
npm audit fix
Run npm audit
for details.
✅ Success: Dependency Installation
▶️ Starting: Custom Setup
Handling custom setup (if neccessary)
Running the following command: npm run setup:custom --if-present
setup:custom
node ./epicshop/setup-custom.js
node:internal/modules/package_json_reader:255
throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), null);
^
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'react-router' imported from /Users/hege.bjoerkedal/git/kode/kurs/react-hooks/node_modules/@epic-web/workshop-utils/dist/esm/db.server.js
at Object.getPackageJSONURL (node:internal/modules/package_json_reader:255:9)
at packageResolve (node:internal/modules/esm/resolve:767:81)
at moduleResolve (node:internal/modules/esm/resolve:853:18)
at defaultResolve (node:internal/modules/esm/resolve:983:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:801:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:725:25)
at ModuleLoader.resolve (node:internal/modules/esm/loader:708:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:309:38)
at #link (node:internal/modules/esm/module_job:201:49) {
code: 'ERR_MODULE_NOT_FOUND'
}
Node.js v24.2.0
🚨 Failure: Custom Setup. Please review the messages above for information on how to troubleshoot and resolve this issue.
➜ react-hooks git:(main)