diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e463b9990..c030722f71 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -193,6 +193,9 @@ jobs: steps: - name: Fix usage of insecure GitHub protocol run: sudo git config --system url."https://github".insteadOf "git://github" + - name: Fix git protocol for Node 14 + if: ${{ startsWith(matrix.NODE_VERSION, '14.') }} + run: sudo git config --system url."https://github".insteadOf "ssh://git@github" - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.NODE_VERSION }} uses: actions/setup-node@v2 diff --git a/6.0.0.md b/6.0.0.md index 31eefc0030..780be79955 100644 --- a/6.0.0.md +++ b/6.0.0.md @@ -4,11 +4,26 @@ This document only highlights specific changes that require a longer explanation --- +- [Incompatible git protocol with Node 14](#incompatible-git-protocol-with-node-14) - [Import Statement](#import-statement) - [Asynchronous Initialization](#asynchronous-initialization) --- +## Incompatible git protocol with Node 14 + +Parse Server 6 uses the Node Package Manger (npm) package lock file version 2. While version 2 is supposed to be backwards compatible with version 1, you may still encounter errors due to incompatible git protocols that cannot be interpreted correctly by npm bundled with Node 14. + +If you are encountering issues installing Parse Server on Node 14 because of dependency references in the package lock file using the `ssh` protocol, configure git to use the `https` protocol instead: + +``` +sudo git config --system url."https://github".insteadOf "ssh://git@github" +``` + +Alternatively you could manually replace the dependency URLs in the package lock file. + +⚠️ You could also delete the package lock file and recreate it with Node 14. Keep in mind that doing so you are not using an official version of Parse Server anymore. You may be using dependencies that have not been tested as part of the Parse Server release process. + ## Import Statement The import and initialization syntax has been simplified with more intuitive naming and structure.