Hi.
I have RepoA and RepoB which both contain a package.json.
RepoA is my 'library' that I want to use in a set of other projects.
All my code is written using CoffeeScript, and I am using Gulp to compile this from a src/ to a build/ directory.
RepoA's package.json contains:
...
"main": "build/index",
...
"dependencies": {
...
"gulp": "*",
...
},
...
"scripts": {
"postinstall": "./node_modules/.bin/gulp --require coffee-script/register"
},
...
When I run npm install from RepoA, it installs all npm packages including gulp then runs the postinstall command, generating my build files and making the main entry work.
When I run npm install from RepoB, which has listed RepoA as one of its dependencies using git+https:// to my gitlab instance, it will fail claiming gulp is not installed ("sh: gulp: command not found").
When I run npm install from RepoB again, gulp is already installed and the postinstall run works.
So it works the second try.
What am I doing wrong here?
gr,
Tom