### Verify latest release - [x] I verified that the issue exists in the latest pnpm release ### pnpm version 9.5.0 ### Which area(s) of pnpm are affected? (leave empty if unsure) _No response_ ### Link to the code that reproduces this issue or a replay of the bug https://github.com/zweird-958/my-wishlist/ ### Reproduction steps Go on branch `chore/eslint` and do `pnpm i` ### Describe the Bug I need to install `@types/node` whereas `ts-node` isn't installed. <img width="294" alt="image" src="https://github.com/user-attachments/assets/acf24648-08a6-4deb-a5f1-7ba7f40febbe"> It's installed only on `packages/db` ### Expected Behavior Avoid to have this warning ### Which Node.js version are you using? 20.9.0 ### Which operating systems have you used? - [X] macOS - [ ] Windows - [ ] Linux ### If your OS is a Linux based, which one it is? (Include the version if relevant) _No response_
Activity
zkochan commentedon Jul 22, 2024
Actually, the bug here is that
@types/nodewasn't automatically installed.If you don't want ts-node (and other peers) automatically installed, set
auto-install-peerstofalsein your.npmrc.fix: install peer of optional peer
julien-hml commentedon Jul 23, 2024
But
tooling/tailwinddoesn't usets-nodeso why I have this warning ?zkochan commentedon Jul 24, 2024
One of the dependencies of
tailwindcsshasts-nodein peer dependencies, so it gets installed becauseauto-install-peersis set totrueby default.julien-hml commentedon Jul 24, 2024
I don't find any peer dependencies in tailwindcss https://www.npmjs.com/package/tailwindcss?activeTab=code
Also I have
ts-nodeinpackages/dband if I remove from it. I doesn't have the warning ontooling/tailwind.I don't think is that...
kenrick95 commentedon Jul 24, 2024
tailwindcssdepends onpostcss-load-configpostcss-load-confighasts-nodeon its peerDependencies and it is marked as optionalhttps://github.com/Zweird-958/my-wishlist/blob/bb2f6c7be502b02907e313cefc73c001c4c2337f/pnpm-lock.yaml#L5649
julien-hml commentedon Jul 24, 2024
Hmm thank you for your answer but I'm not sure is the issue.
I deleted ts-node from
packages/dband I don't have any warningtooling/tailwindpackage.json:{ "name": "@my-wishlist/tailwind", "version": "1.0.0", "type": "module", "main": "base.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "typecheck": "tsc --noEmit", "lint": "eslint" }, "keywords": [], "author": "", "license": "ISC", "dependencies": { "autoprefixer": "^10.4.19", "postcss": "^8.4.39", "tailwindcss": "catalog:" }, "devDependencies": { "eslint": "catalog:", "@my-wishlist/eslint": "workspace:*", "@my-wishlist/typescript": "workspace:*", "typescript": "catalog:" } }fix: install peer of optional peer (pnpm#8330)
chore(deps): update pnpm to v9.7.1
chore(deps): update pnpm to v9.7.1
chore(deps): update pnpm to v9.7.1
chore(deps): update pnpm to v9.7.1
chore(deps): update pnpm to v9.7.1