https://github.com/mrft/npmcitest
bitbucjket pipelines problem where a dependencies dist folder would not exist after running npm ci
https://github.com/mrft/npmcitest
Last synced: about 1 year ago
JSON representation
bitbucjket pipelines problem where a dependencies dist folder would not exist after running npm ci
- Host: GitHub
- URL: https://github.com/mrft/npmcitest
- Owner: mrft
- Created: 2022-09-29T10:05:30.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-03T06:49:02.000Z (over 3 years ago)
- Last Synced: 2025-04-24T01:16:03.806Z (about 1 year ago)
- Language: TypeScript
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NPM CI TEST
## About
We were having trouble with npm ci when run from a bitbucket pipeline, and in order to investigate what exactly was going on we created this tiny repo, just to check whether the prepare script from inside package.json would run properly.
Turns out it was related to a bug in npm 6 that would not execute the prepare script when run as root (which is what happens by default on most docker containers (and thus when running things from a bitbucket pipeline).
Here's some info that got us on the right track, so we could build a workaround in the bitbucket pipeline:
* https://github.com/npm/npm/issues/17346
* https://stackoverflow.com/questions/52766731/npm-v6-4-1-not-running-prepare-inside-docker