From 1d440879936f1d6737e788a8d6ce890298a6bb8d Mon Sep 17 00:00:00 2001 From: Rishabh Gupta Date: Thu, 30 Jun 2022 17:53:22 +0530 Subject: [PATCH] [Fix]: Publish the package on NPM Before this commit it was required to install the package using Github. However when using NPM version 8.5, the installation used to fail with the following error : "... git --no-replace-objects clone https://git@github.com/ElucidataInc/node-s3-client.git /root/.npm/_cacache/tmp/git-cloneNZtpAU --recurse-submodules npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-cloneNZtpAU': Permission denied" The following Github threads were reported with similar issues - https://github.com/npm/cli/issues/624 - https://github.com/npm/cli/issues/642 As the suggested methods in the above threads, like shifting to older version of NPM, did not satisfy our needs, we are publishing the package to NPM public registry --- .npmignore | 1 + package.json | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.npmignore b/.npmignore index e216ae5..99ea9e1 100644 --- a/.npmignore +++ b/.npmignore @@ -1,2 +1,3 @@ /node_modules /test +.idea diff --git a/package.json b/package.json index f763206..78c5743 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,10 @@ "scripts": { "test": "mocha" }, + "publishConfig": { + "access": "public", + "registry": "https://registry.npmjs.org/" + }, "repository": { "type": "git", "url": "https://github.com/ElucidataInc/node-s3-client.git"