Skip to content

Prisma init error #55

@pyrenaicus

Description

@pyrenaicus

Hi,

I'm on macos sequoia 15.7.2 (24G325)
git version 2.52.0
node 24.4.1
npm 11.6.0

install and run the workshop with:

git clone --depth 1 https://github.com/epicweb-dev/data-modeling.git
cd data-modeling
npm run setup
npm start

App runs fine, I open the workshop and in exercise 01, while I cd to /playground and run the command
npx prisma init --url file:./data.db I get the following error:

Error: (0 , DSe.isError) is not a function

Clean npm and npx caches and re-install everything again with

npm cache clean --force
npx clear-npx-cache
rm -rf data-modeling
git clone --depth 1 https://github.com/epicweb-dev/data-modeling.git
cd data-modeling
npm run setup
npm start

cd to /playground and run the command npx prisma init --url file:./data.db I get the following error this time:

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
/Users/pau/.asdf/installs/nodejs/24.4.1/lib/node_modules/npm/lib/cli/validate-engines.js:29
    throw err
    ^
Error: ENOENT: no such file or directory, uv_cwd
    at process.wrappedCwd (node:internal/bootstrap/switches/does_own_process_state:142:28)
    at process.cwd (/Users/pau/.asdf/installs/nodejs/24.4.1/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:10:19)
    at new Config (/Users/pau/.asdf/installs/nodejs/24.4.1/lib/node_modules/npm/node_modules/@npmcli/config/lib/index.js:79:19)
    at new Npm (/Users/pau/.asdf/installs/nodejs/24.4.1/lib/node_modules/npm/lib/npm.js:67:19)
    at module.exports (/Users/pau/.asdf/installs/nodejs/24.4.1/lib/node_modules/npm/lib/cli/entry.js:14:15)
    at module.exports (/Users/pau/.asdf/installs/nodejs/24.4.1/lib/node_modules/npm/lib/cli/validate-engines.js:37:10)
    at module.exports (/Users/pau/.asdf/installs/nodejs/24.4.1/lib/node_modules/npm/lib/cli.js:12:31)
    at Object.<anonymous> (/Users/pau/.asdf/installs/nodejs/24.4.1/lib/node_modules/npm/bin/npx-cli.js:130:1)
    at Module._compile (node:internal/modules/cjs/loader:1692:14)
    at Object..js (node:internal/modules/cjs/loader:1824:10) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'uv_cwd'
}
Node.js v24.4.1

🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions