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
93
votes
7 answers

Local gulp not found (Try running: npm install gulp)

I created a module (webapp-module-storage) which has the following definitions: package.json { "dependencies": { ... }, "devDependencies": { "gulp": "^3.9.1", ... }, "name": "webapp-module-storage", "scripts": { …
Benny Code
  • 51,456
  • 28
  • 233
  • 198
36
votes
2 answers

Execute a Python script post install using distutils / setuptools

Note: distutils is deprecated and the accepted answer has been updated to use setuptools I'm trying to add a post-install task to Python distutils as described in How to extend distutils with a simple post install script?. The task is supposed to…
kynan
  • 13,235
  • 6
  • 79
  • 81
29
votes
4 answers

How to automatically copy files from package to local directory via postinstall npm script?

I want to automatically copy certain files from an npm package to user's local directory after running npm install my-package I can get them installed by declaring "files" inside package.json. The problem is --- the files are not put in the local…
Dmitri Zaitsev
  • 13,548
  • 11
  • 76
  • 110
28
votes
1 answer

StriderCD global post install fails on bower access to $HOME/.config $HOME/.cache

I am trying to work out the best way to install StriderCD globally. I installed node and npm via the global-enabled fork of nvm, and all paths are working fine for other builds, but none of them require a post install like this. I've tried both sudo…
notbrain
  • 3,366
  • 2
  • 32
  • 42
13
votes
2 answers

npm postinstall fails with multiple commands

Inside my composer.json, there's a postinstall hook setup like the following: "scripts" : { "dist" : "node dist; node_modules/.bin/doccoh src/package.js", "postinstall" : "node_modules/.bin/grunt setup || true; node_modules/.bin/bower…
kaiser
  • 21,817
  • 17
  • 90
  • 110
9
votes
1 answer

Add custom path to HEADER_SEARCH_PATHS using CocoaPods post install hook

I am trying to add $(PLATFORM_DIR)/Developer/Library/Frameworks path to Specta target Header search paths using post install hook. This obviously is not vital, but it really annoys me to added this path manually each time I do "pod update". I got to…
StalkerRus
  • 411
  • 1
  • 10
  • 20
6
votes
1 answer

postinstall webpack not working on Heroku

I'm using Heroku to host my app and webpack to build it. Basically, I'm trying to deploy my app, but it doesn't work at all. The postinstall doesn't seem to occur since when I load the page it's missing the file bundle.js (which is built via…
pistou
  • 2,799
  • 5
  • 33
  • 60
6
votes
1 answer

brew mysql installation, error in posinstall step

I've been trying to install mysql. I removed all installations of mysql from my system. Followed the following steps brew remove mysql brew cleanup Followed this link to uninstall all of mysql. Did a complete search for any mysql related…
leo
  • 1,423
  • 2
  • 14
  • 23
5
votes
1 answer

npm postinstall runs only when not installing anything

I was wrong The reason why npm install whatever deletes the node_modules/- folder is different: I thought it runs preinstall but no postinstall and I was wrong. I runs neither of the two scripts. The reason seems to be that npm install whatever also…
maaartinus
  • 44,714
  • 32
  • 161
  • 320
5
votes
0 answers

Failed at the core-js@2.6.9 postinstall script when running create-react-app

I'm installing react locally, and then creating a react app. However, it fails at the postinstall script part. Following is the error:
raffayatiq
  • 159
  • 9
5
votes
0 answers

setup.py post-install scripts and pip install extras

I'm developing a package which has a few optional dependencies and 'extras'. Goal: I want the following two things to work: Execute my post-install code Allow for 'extras' installation Status: Currently I have been able to: Use python setup.py…
Tim
  • 168
  • 9
5
votes
1 answer

How does npm handle lock files

So I'm running npm install xyz inside a script that is called by the postinstall npm hook of another npm module. (Let's not get into why please but it has to do with optional dependencies that are not supported by npm) npm install moduleA ->…
Dominik
  • 6,078
  • 8
  • 37
  • 61
5
votes
3 answers

Accessing environment variable inside the postinst script of the debian package

I have made a debian package for automating the oozie installation. The postinst script, which is basically a shell script, runs after the package is installed. I want to access the environment variable inside this script. Where should I set the…
Narayan Periwal
  • 89
  • 1
  • 10
4
votes
3 answers

Problem in React Native v0.62.2 with Flipper pods and post install hooks

Im new in react native, and i facing the problem: Im using react native with flipper pods, and my pod file contain this code: add_flipper_pods! post_install do |installer| flipper_post_install(installer) end But i need change my deployment…
4
votes
0 answers

Pip Post-install Script Interactive Input?

I'm very new to python packaging, and trying to make a pip compatible setup and post-install script for my package for colleagues. The goal of the post-install script is to create a configuration file that will be customized to the end-user and…
drmrgd
  • 733
  • 5
  • 17
1
2 3 4 5 6 7