-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUGFIX. Wrong 'node' and 'deploy' workflows when using node versions >14
Error: - In the `node` workflow, the `npm ci` command does not work, it needs the `package-lock.json` file to work, but this file is removed by the npm `preinstall` script. Solution: - Use in workflows the `npm install` command instead of `npm ci`. The `npm install` automatically runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Use `node` version 14 for the project, the following versions still do not work. References: - npm-force-resolutions not working when installing a new package https://stackoverflow.com/a/68095189/10855837 - What is the difference between "npm install" and "npm ci"? https://stackoverflow.com/a/53325242/10855837 - Npm install fails in npm-force-resolutions if there is a space in the user folder rogeriochaves/npm-force-resolutions#17 - NPM force-resolutions https://www.npmjs.com/package/force-resolutions
- Loading branch information
1 parent
ee71d22
commit 8a75a8b
Showing
3 changed files
with
12 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters