Closed danieldecsi closed 6 years ago
It seems npm ci
doesn't run the prepare
hook. You can use the postinstall
hook too, which works with npm ci
. Maybe I should update the readme to reflect that.
postinstall
works, thank you.
It seems npm ci doesn't run the prepare hook. You can use the postinstall hook too, which works with npm ci. Maybe I should update the readme to reflect that.
This will be just updated when there is a new release on npmjs.
patch-package is missing from the node_modules/.bin folder
Isn't the problem rather that patch-package
is a devDependency
and not a dependency
in your package.json?
Personally I've used only a prepare
script that doesn't run when building in the CI, and rather use manual patch application with git apply --no-index patches/*.patch
instead of installing patch-package in production.
This is a rather old issue and was resolved. So far it doesn't matter here, if dependencies
or devDependencies
is used.
patch-package fails when using
npm ci
to install packages.yarn install
andnpm install
works well. patch-package is missing from the node_modules/.bin folder, but other binaries of other dependencies are there.npm 5.8.0 patch-package 5.1.1
Related part of our package.json file: