jfrog-cli icon indicating copy to clipboard operation
jfrog-cli copied to clipboard

npm install fails when no dependencies exist

Open yahavi opened this issue 3 years ago • 3 comments

Describe the bug

jf npm install fail when no dependencies exist in the project and the cache is clean.

Current behavior

The following error is returned:

12:06:56 [🚨Error] _cacache folder is not found in '/Users/yahavi/.npm/_cacache'. Hint: Delete node_modules directory and run npm install or npm ci.

Reproduction steps

package.json:

{
  "name": "frog-greet",
  "version": "1.0.0"
}

Run the following commands:

npm cache clean --force
jf npmc
jf npm install --build-name aaa --build-number 111

Expected behavior

No response

JFrog CLI version

2.31.0

Operating system type and version

Mac and Ubuntu runner in GitHub Actions

JFrog Artifactory version

No response

JFrog Xray version

No response

yahavi avatar Dec 19 '22 10:12 yahavi