prep fails at cargo prisma "generate"; internalModuleReadJSON is not a function #346
-
I'm trying to run spacedrive on my hackintosh by following the contributing docs, but it fails at the pnpm run prep output% pnpm run prep
> spacedrive@0.0.0 prep /Users/o/projects/_others/spacedrive
> pnpm db:gen
> spacedrive@0.0.0 db:gen /Users/o/projects/_others/spacedrive
> pnpm core prisma generate
> spacedrive@0.0.0 core /Users/o/projects/_others/spacedrive
> pnpm --filter @sd/core -- "prisma" "generate"
> @sd/core@0.0.0 prisma /Users/o/projects/_others/spacedrive/core
> cargo prisma "generate"
Finished dev [unoptimized + debuginfo] target(s) in 0.38s
Running `/Users/o/projects/_others/spacedrive/target/debug/prisma-cli generate`
node:internal/modules/package_json_reader:4
const internalModuleReadJSON = function (f) { return require('fs').internalModuleReadJSON(f); };
^
TypeError: require(...).internalModuleReadJSON is not a function
at internalModuleReadJSON (node:internal/modules/package_json_reader:4:68)
at Object.read (node:internal/modules/package_json_reader:21:42)
at readPackage (node:internal/modules/cjs/loader:296:36)
at readPackageScope (node:internal/modules/cjs/loader:329:19)
at trySelf (node:internal/modules/cjs/loader:444:40)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:910:24)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at Module._preloadModules (node:internal/modules/cjs/loader:1280:12)
at loadPreloadModules (node:internal/bootstrap/pre_execution:482:5) Let me know if I can provide any additional information. |
Beta Was this translation helpful? Give feedback.
Answered by
vaaski
Jul 21, 2022
Replies: 1 comment
-
I tried it again with node 17, to no success. Then I tried it from iTerm2 instead of the vscode terminal and for some reason it worked. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vaaski
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried it again with node 17, to no success. Then I tried it from iTerm2 instead of the vscode terminal and for some reason it worked.
I've downgraded to node 16 again, and it still only works when I run it outside of vscode.
Very weird.