volta
volta copied to clipboard
Unable to `pnpm create`
This may be related to #737 since it involves pnpm.
When trying to create a new project using the new (as of pnpm v6.17.0) "create" command, I see the following error:
pnpm create vite conference2
Packages: +6
++++++
Packages are hard linked from the content-addressable store to the virtual store.
Content-addressable store is at: /Users/duane/.pnpm-store/v3
Virtual store is at: node_modules/.pnpm
Progress: resolved 6, reused 6, downloaded 0, added 6, done
/private/var/folders/bl/vmhly6rn6kbd7hphg614m4b80000gn/T/dlx-49111/5:
+ create-vite 2.6.6
Volta error: 'volta-shim' should not be called directly.
Please use the existing shims provided by Volta (node, yarn, etc.) to run tools.
ERROR Command failed with exit code 126: /private/var/folders/bl/vmhly6rn6kbd7hphg614m4b80000gn/T/dlx-49111/bin/create-vite conference2
at makeError ../.volta/tools/image/node/14.17.5/pnpm-global/5/node_modules/.pnpm/[email protected]/node_modules/pnpm/dist/pnpm.cjs:49286 error = new Error(messag…
at handlePromise ../.volta/tools/image/node/14.17.5/pnpm-global/5/node_modules/.pnpm/[email protected]/node_modules/pnpm/dist/pnpm.cjs:49857 const returnedError = ma…
at processTicksAndRejections internal/process/task_queues.js:95
at handler ../.volta/tools/image/node/14.17.5/pnpm-global/5/node_modules/.pnpm/[email protected]/node_modules/pnpm/dist/pnpm.cjs:128955 await (0, execa_1.defaul…
at async /Users/duane/.volta/tools/image/node/14.17.5/pnpm-global/5/node_modules/.pnpm/[email protected]/node_modules/pnpm/dist/pnpm.cjs:133538
at async run ../.volta/tools/image/node/14.17.5/pnpm-global/5/node_modules/.pnpm/[email protected]/node_modules/pnpm/dist/pnpm.cjs:133513 let { output, exitCode }…
at async runPnpm ../.volta/tools/image/node/14.17.5/pnpm-global/5/node_modules/.pnpm/[email protected]/node_modules/pnpm/dist/pnpm.cjs:133724 await main(argv);
at async /Users/duane/.volta/tools/image/node/14.17.5/pnpm-global/5/node_modules/.pnpm/[email protected]/node_modules/pnpm/dist/pnpm.cjs:133716
(I believe the above command uses https://www.npmjs.com/package/create-vite if it's relevant)
@canadaduane That's very odd! The error shown in the middle should only happen if something calls the volta-shim binary directly and by name. The main way I could see that happening is if something looked up one of the shims (like npm) and resolved the symlink before executing it. However, from what I can tell looking at both pnpm create and create-vite, nothing is doing anything like that.
Let me know if there's any information I can add to help diagnose the cause.
@canadaduane if you're still using both Volta and pnpm, do you know if this is happening now that we have experimental pnpm support?