Questions tagged [post-install]

This tag is used for user-defined scripts that are executed by a package manager after the installation of a software package.

100 questions
3
votes
0 answers

How to modify post_install hook ? Specifying multiple `post_install` hooks is unsupported

I am new to iOS development and tried to merge the following pieces of code into one post_install hook without luck: post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) …
BerlinUkn0w
  • 458
  • 4
  • 8
3
votes
2 answers

Angular 10: postinstall script needed?

This is maybe more a clarification question: According to the docs for Ivy (since Angular 9) we need to add a postinstall script into our package.json, which looks like this: "postinstall": "ngcc --properties es2015 browser module main --first-only…
dave0688
  • 5,372
  • 7
  • 33
  • 64
3
votes
1 answer

npm install stucked at postinstall: sill install executeActions forever

I input npm install on the VS code terminal on Docker, and it ran and ran until postinstall: sill install excuteActions, and it stopped. Forever. I wonder what the problem is? I clicked ctrl+c afterwards to quit, but even that doesn't quit…
ProudHKer
  • 85
  • 10
3
votes
3 answers

How can i edit a package.json with postinstall

I have created a package on npm that create a "scss directory stucture" and I would like to copy/add custom scripts to the package.json file at the root of the project. MY-PROJECT ├── node_modules ├── scss └── package.json <-- All I was able to do,…
Max
  • 196
  • 1
  • 5
  • 14
3
votes
2 answers

Interactive PHP script with composer

I want to run one interactive PHP script after composer update or composer install automatically from composer.json file like: "scripts": { "raven-cmd": [ "php bin/console kolesar:boilerplate:setup" ], "auto-scripts": { …
Kolesar
  • 1,265
  • 3
  • 19
  • 41
3
votes
1 answer

Permission denied when running NPM postinstall script?

I have a postinstall script in my package.json file for a node module, that locates a file within the node module and copies it to another directory. if I run the post install script by itself, it executes without issue. However, when I make a…
don_jacuzzi
  • 91
  • 1
  • 1
  • 7
3
votes
0 answers

Finding setup.py installation dir within setup.py

I'm writing a Python setup.py script that needs to fix up directory permissions after the installation is complete. I'm using the _postInstall() hook mechanism to give me a place to invoke some final permission-setting code as the last thing in the…
rsmith
  • 31
  • 2
3
votes
1 answer

Symlink not created by postinst of *.deb package. New file created instead

I have created a *.deb package which saves some files into the required locations which works fine. During the postinst I generate a new file (merging 2 files together using my own script "mergeconfig"), the file is created fine. However, on the…
3
votes
3 answers

How to install dependencies while creating a .deb installer?

I have created a deb package say abc.deb. Now there are few dependencies like python-dev, python-mysql etc., which are needed to be installed as a part of deb installation itself. (i.e. when user runs dpkg -i abc.deb, the dependencies should also…
exAres
  • 4,806
  • 16
  • 53
  • 95
3
votes
1 answer

Sourcing common functions in debian maintainer scripts

I have a number of common functions that I would like to source, so it's available in the debian maintainer scripts (preinst/postinst/prerm/postrm), call it common.sh. If I add "common.sh" to the DEBIAN directory, dpkg complains: dpkg-deb: warning:…
srclosson
  • 191
  • 1
  • 1
  • 7
2
votes
0 answers

Is there a way to run `postinstall` only when installing locally and not when being installed as a dependency?

I wanted to run postinstall only when installing locally and not when my package is being installed as a dependency. For example, x has a post install script and y has the dependency x. I want to run it when running npm install inside x and not when…
looped
  • 21
  • 1
2
votes
0 answers

npm package - Postinstall not triggered

I want to trigger the postinstall hook of an npm package. The package.json of that package looks as follows: "scripts": { "postinstall": "node ./bin/index.js", }, The npm documentation is rather sparse on that topic. It seems that…
Andre
  • 4,185
  • 5
  • 22
  • 32
2
votes
1 answer

Is there any option to tell to helm to not wait till post install hook is completed?

We are using helm to deploy k8s project/set of pods. Till now "helm install" comes out immediately after loading scripts. We have added "post install" hook and the "helm install" waits for some time and comes out with error "timed out waiting for…
Chandu
  • 1,837
  • 7
  • 30
  • 51
2
votes
1 answer

Adding snyk as a post-install step?

The snyk wizard documentation recommends adding snyk protect to your project as a post-install step. How exactly do you do that? I referred to the entire package.json documentation here and couldn't find any reference to a post-install keyword.
TheLearner
  • 2,813
  • 5
  • 46
  • 94
2
votes
0 answers

Refer the target's Preprocessor macro within a pod project

I have a project that has multiple targets. On each target's, I have added some pre-processor macros. It has multiple pods added to the workspace. Obviously, the target's preprocessor macro won't be visible to the pod projects. How can I get…
Sj.
  • 1,674
  • 2
  • 15
  • 23