epicweb-dev / full-stack-foundations

Learn the foundational skills of building full stack web applications.
https://epicweb.dev/workshops/full-stack-foundations
Other
586 stars 152 forks source link

npm start issue #95

Closed agdm closed 2 months ago

agdm commented 2 months ago

Upon running npm start:

file:///Users/alvinmilton/Development/learning/full-stack-foundations/epicshop/node_modules/@epic-web/workshop-utils/node_modules/execa/lib/utils/max-listeners.js:1
import {addAbortListener} from 'node:events';
        ^^^^^^^^^^^^^^^^
SyntaxError: The requested module 'node:events' does not provide an export named 'addAbortListener'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:122:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:188:5)
    at async DefaultModuleLoader.import (node:internal/modules/esm/loader:228:24)
    at async file:///Users/alvinmilton/Development/learning/full-stack-foundations/epicshop/node_modules/@epic-web/workshop-app/start.js:33:2

installed versions

git version 2.39.3 (Apple Git-146)
➜  full-stack-foundations git:(main) node -v
v20.4.0
➜  full-stack-foundations git:(main) npm -v
9.7.2
➜  full-stack-foundations git:(main)
kentcdodds commented 2 months ago

Looks like execa requires ^18.19.0 or >=20.5.0 of node.js. Update your Node.js version and that should fix it for you :)