-
Notifications
You must be signed in to change notification settings - Fork 651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add pre/postinstall scripts to prevent 'npm install' failure #16454
Conversation
…of github.com:CartoDB/cartodb into feature/sc-172043/reef-admin-can-t-set-map-to-private
…f-4096-named-maps
…anges-not-applying
…an-t-set-map-to-private
…of github.com:CartoDB/cartodb into feature/sc-172043/reef-admin-can-t-set-map-to-private
…an-t-set-map-to-private
[sc95788] Fix 404.html page
…-randomly-2 Log pg_locks when there is a timeout during a sync table importation
* increase cloud build timeout * increase timeout * downgrade rubocop version * Update rubocop.yml * rubocop 1.17.0 * Update rubocop.yml * revert version
…sers-delete-themselves
…ities-when-users-delete-themselves [sc230232] Avoid deleting a user if it has shared entities
…ion-notes-to-cartodb-repository
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this looks harmless, but let's talk before moving on
PR was created on top of |
If this goes against cloud-native branch, just for our do-catalog bundle, I'm fine with it. |
TL;DR;
Just fix the
npm install
scriptExplanation
The recommended Node Version for this repository is
10.15.1
, which uses npm6.4.1
under the hood (see.nvmrc
).When trying to install dependencies directly from Git repositories, this version of NPM uses internally the git: protocol, which performs operations such as:
/usr/bin/git ls-remote -h -t git://github.com/<organization>/<repository>.git
git clone --depth=1 -q -b master git://github.com/<organization>/<repository>.git <some-cache-directory>
However, Github dropped support for this protocol a while ago, hence
npm install
fails always.The less elegant, but most pragmatic solution @Josmorsot and I found during the journey is to redirect every
git:
protocol request throughhttps:
by modifying the NPM configuration locally