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

Cant run npx @snaplet/seed init on windows 11 #193

Open
Th1nhNg0 opened this issue Aug 7, 2024 · 0 comments
Open

Cant run npx @snaplet/seed init on windows 11 #193

Th1nhNg0 opened this issue Aug 7, 2024 · 0 comments

Comments

@Th1nhNg0
Copy link

Th1nhNg0 commented Aug 7, 2024

I try to run npx @snaplet/seed init and got this error:

Welcome to @snaplet/seed! Snaplet Seed populates your database with realistic, production-like mock data ✨
(node:1152) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

⠼ Installing the dependencies: `@snaplet/copycat`, `@snaplet/[email protected]`Error: Command failed with exit code 1: npm install -D @snaplet/copycat @snaplet/[email protected]
npm warn ERESOLVE overriding peer dependency
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: @jridgewell/[email protected]
npm warn Found: peer @typescript-eslint/parser@"^5.0.0" from @typescript-eslint/[email protected]
npm warn node_modules/.pnpm/@[email protected]/node_modules/@jridgewell/gen-mapping/node_modules/@typescript-eslint/eslint-plugin
npm warn   dev @typescript-eslint/eslint-plugin@"5.21.0" from @jridgewell/[email protected]
npm warn   node_modules/.pnpm/@[email protected]/node_modules/@jridgewell/gen-mapping
npm warn
npm warn Could not resolve dependency:
npm warn peer @typescript-eslint/parser@"^5.0.0" from @typescript-eslint/[email protected]
npm warn node_modules/.pnpm/@[email protected]/node_modules/@jridgewell/gen-mapping/node_modules/@typescript-eslint/eslint-plugin
npm warn   dev @typescript-eslint/eslint-plugin@"5.21.0" from @jridgewell/[email protected]
npm warn   node_modules/.pnpm/@[email protected]/node_modules/@jridgewell/gen-mapping
npm warn ERESOLVE overriding peer dependency
npm warn ERESOLVE overriding peer dependency
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: @jridgewell/[email protected]
npm warn Found: peer @typescript-eslint/parser@"^6.0.0 || ^6.0.0-alpha" from @typescript-eslint/[email protected]
npm warn node_modules/.pnpm/@[email protected]/node_modules/@jridgewell/trace-mapping/node_modules/@typescript-eslint/eslint-plugin
npm warn   dev @typescript-eslint/eslint-plugin@"6.18.1" from @jridgewell/[email protected]
npm warn   node_modules/.pnpm/@[email protected]/node_modules/@jridgewell/trace-mapping
npm warn
npm warn Could not resolve dependency:
npm warn peer @typescript-eslint/parser@"^6.0.0 || ^6.0.0-alpha" from @typescript-eslint/[email protected]
npm warn node_modules/.pnpm/@[email protected]/node_modules/@jridgewell/trace-mapping/node_modules/@typescript-eslint/eslint-plugin
npm warn   dev @typescript-eslint/eslint-plugin@"6.18.1" from @jridgewell/[email protected]
npm warn   node_modules/.pnpm/@[email protected]/node_modules/@jridgewell/trace-mapping
npm warn ERESOLVE overriding peer dependency
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: [email protected]
npm warn Found: peer @swc/core@"^1.2.66" from @swc/[email protected]
npm warn node_modules/.pnpm/[email protected]/node_modules/class-variance-authority/node_modules/@swc/cli
npm warn   dev @swc/cli@"0.1.57" from [email protected]
npm warn   node_modules/.pnpm/[email protected]/node_modules/class-variance-authority
npm warn
npm warn Could not resolve dependency:
npm warn peer @swc/core@"^1.2.66" from @swc/[email protected]
npm warn node_modules/.pnpm/[email protected]/node_modules/class-variance-authority/node_modules/@swc/cli
npm warn   dev @swc/cli@"0.1.57" from [email protected]
npm warn   node_modules/.pnpm/[email protected]/node_modules/class-variance-authority
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: [email protected]
npm warn Found: [email protected]
npm warn node_modules/.pnpm/[email protected]/node_modules/eslint
npm warn   dev eslint@"^5.16.0" from [email protected]
npm warn   node_modules/.pnpm/[email protected]/node_modules/cross-spawn
npm warn     [email protected]
npm warn     node_modules/.pnpm/node_modules/cross-spawn
npm warn   5 more (eslint-config-moxy, eslint-plugin-babel, ...)
npm warn
npm warn Could not resolve dependency:
npm warn peer eslint@">= 6.0.0" from [email protected]
npm warn node_modules/.pnpm/[email protected]/node_modules/babel-eslint
npm warn   babel-eslint@"^11.0.0-beta.0" from [email protected]
npm warn   node_modules/.pnpm/[email protected]/node_modules/eslint-config-moxy
npm error Cannot read properties of null (reading 'matches')
npm error A complete log of this run can be found in: C:\Users\ngoph\scoop\persist\nodejs\cache\_logs\2024-08-07T17_17_55_464Z-debug-0.log
    at makeError (file:///C:/Users/ngoph/AppData/Local/pnpm/store/v3/tmp/dlx-12956/node_modules/.pnpm/[email protected]/node_modules/execa/lib/error.js:60:11)
    at handlePromise (file:///C:/Users/ngoph/AppData/Local/pnpm/store/v3/tmp/dlx-12956/node_modules/.pnpm/[email protected]/node_modules/execa/index.js:124:26)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.add (file:///C:/Users/ngoph/AppData/Local/pnpm/store/v3/tmp/dlx-12956/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@snaplet/seed/dist/src/config/utils.js:18:9)
    at async installDependencies (file:///C:/Users/ngoph/AppData/Local/pnpm/store/v3/tmp/dlx-12956/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@snaplet/seed/dist/src/cli/commands/init/installDependencies.js:29:5)
    at async initHandler (file:///C:/Users/ngoph/AppData/Local/pnpm/store/v3/tmp/dlx-12956/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@snaplet/seed/dist/src/cli/commands/init/initHandler.js:31:5)
    at async Object.handler (file:///C:/Users/ngoph/AppData/Local/pnpm/store/v3/tmp/dlx-12956/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@snaplet/seed/dist/src/cli/commands/init/init.js:8:9)

My node version is: v22.4.0

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

No branches or pull requests

1 participant