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
NOTE: If a package being installed through git contains a prepare script, its dependencies and devDependencies will be installed, and the prepare script will be run, before the package is packaged and installed.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Documentation suggests a great concept:
https://docs.npmjs.com/cli/v10/using-npm/scripts#life-cycle-scripts
However this is simply not the case. Here I have tried to use
prepare
to compile my package after install, and it fails:https://github.com/rhys-vdw/lua-doc-extractor/blob/027b55260631949211dec6d0ce06878f7524613c/package.json#L13
Here you can see that dev dependencies were not installed:
npm error npm error 'tsc' is not recognized as an internal or external command,
This suggests that the
typescript
dev dependency was not installed.However if I run it locally with
npm run prepare
the build succeeds.Beta Was this translation helpful? Give feedback.
All reactions