From 44960f04395221ae9dd372c33c7f1adf5aa28c3c Mon Sep 17 00:00:00 2001 From: Manuel Trezza <5673677+mtrezza@users.noreply.github.com> Date: Fri, 6 Jan 2023 14:06:16 +0100 Subject: [PATCH 1/4] fix --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e463b9990..8cbc0fae19 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 "git+ssh://git@github" - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.NODE_VERSION }} uses: actions/setup-node@v2 From 57a3f064c5ccfe009e0a4ba4bc21484bddfd950a Mon Sep 17 00:00:00 2001 From: Manuel Trezza <5673677+mtrezza@users.noreply.github.com> Date: Fri, 6 Jan 2023 14:10:59 +0100 Subject: [PATCH 2/4] fix --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8cbc0fae19..c030722f71 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -195,7 +195,7 @@ jobs: 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 "git+ssh://git@github" + 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 From 078a0173e1e276e998a9d2d5ee24de6f2e54aa61 Mon Sep 17 00:00:00 2001 From: Manuel Trezza <5673677+mtrezza@users.noreply.github.com> Date: Sun, 8 Jan 2023 21:14:10 +0100 Subject: [PATCH 3/4] add upgrade note --- 6.0.0.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/6.0.0.md b/6.0.0.md index 31eefc0030..8d61e5a8ab 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 on Node 14](#incompatible-git-protocol-on-node-14) - [Import Statement](#import-statement) - [Asynchronous Initialization](#asynchronous-initialization) --- +## Incompatible git protocol on 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. From 4dacaf392e370e89c32773f2c81c9bccd757bcc1 Mon Sep 17 00:00:00 2001 From: Manuel Trezza <5673677+mtrezza@users.noreply.github.com> Date: Sun, 8 Jan 2023 21:15:11 +0100 Subject: [PATCH 4/4] fix typo --- 6.0.0.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/6.0.0.md b/6.0.0.md index 8d61e5a8ab..780be79955 100644 --- a/6.0.0.md +++ b/6.0.0.md @@ -4,13 +4,13 @@ This document only highlights specific changes that require a longer explanation --- -- [Incompatible git protocol on Node 14](#incompatible-git-protocol-on-node-14) +- [Incompatible git protocol with Node 14](#incompatible-git-protocol-with-node-14) - [Import Statement](#import-statement) - [Asynchronous Initialization](#asynchronous-initialization) --- -## Incompatible git protocol on Node 14 +## 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.