yarn command runs with double node_modules/node_modules path
Unanswered
Chow Chow posted this in #help-forum
Chow ChowOP
I dont have double node_modules directory but command runs like this
? v22.13.1 ♥ 20:35 yarn entity:complete Admin
yarn run v1.22.22
$ npx nestjs-prisma-codegen --complete Admin
node:internal/modules/cjs/loader:1247
throw err;
^
Error: Cannot find module 'D:\nest-projects\autospace\node_modules\node_modules\ts-node\dist\bin.js'
at Function._resolveFilename (node:internal/modules/cjs/loader:1244:15)
at Function._load (node:internal/modules/cjs/loader:1070:27)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)
at node:internal/main/run_main_module:36:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v22.13.1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
User …\autospace\apps\api main ✘!? v22.13.1 ♥ 20:39 node -p "require.resolve('ts-node')"
∙
D:\nest-projects\autospace\node_modules\ts-node\dist\index.js i've tried deleting node modules and cleaning cash
? v22.13.1 ♥ 20:35 yarn entity:complete Admin
yarn run v1.22.22
$ npx nestjs-prisma-codegen --complete Admin
node:internal/modules/cjs/loader:1247
throw err;
^
Error: Cannot find module 'D:\nest-projects\autospace\node_modules\node_modules\ts-node\dist\bin.js'
at Function._resolveFilename (node:internal/modules/cjs/loader:1244:15)
at Function._load (node:internal/modules/cjs/loader:1070:27)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)
at node:internal/main/run_main_module:36:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v22.13.1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
User …\autospace\apps\api main ✘!? v22.13.1 ♥ 20:39 node -p "require.resolve('ts-node')"
∙
D:\nest-projects\autospace\node_modules\ts-node\dist\index.js i've tried deleting node modules and cleaning cash