You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After selecting options, when I choosed package manager pnpm at project root and tried to instal packages, pnpm throw errors below.
ERR_PNPM_ADDING_TO_ROOT Running this command will add the dependency to the workspace root, which might not be what you want - if you really meant it, make it explicit by running this command again with the -w flag (or --workspace-root). If you don't want to see this warning anymore, you may set the ignore-workspace-root-check setting to true.
Environment
What is happening
After selecting options, when I choosed package manager pnpm at project root and tried to instal packages, pnpm throw errors below.
Solution
pnpm workspace is enabled by
pnpm-workspace.yaml
existence.reference: https://pnpm.io/ja/workspaces
I think these two steps below can solve this issue.
findPnpmWorkspaceYaml
likefindPackageJson
inlib/npm-utils.js
workspaceFlag
and pass-w
to spawn ininstallSyncSaveDev
inlib/npm-utils.js
reference: https://github.com/eslint/create-config/blob/main/lib/utils/npm-utils.js
Could I create this solution's draft PR?
The text was updated successfully, but these errors were encountered: