You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since 2.13.0 jfrog cli version, when i run jf npm install/ci, npm run build (ng build) and then jf audit-npm i have the following message in the audit-npm output :
[Error] couldn't calculate checksum for : 'xxxxxx'. Hint: Try to delete 'node_models' and/or 'package-lock.json'.
[Error] 5d43b74a81e5f00fc9f78205b6baa7d4a4c13d16126e98b60832f31a87f846e8 is not found in /root/.npm/_cacache/index-v5/5d/43/b74a81e5f00fc9f78205b6baa7d4a4c13d16126e98b60832f31a87f846e8
If i run an npm prune or jf npm ci after the npm run build, then I have no error, so it seems that the ng build change npm local cache and then it produces the error.
-> Launch the following commands in the project with a jfrog cli configured to uses Artifactory platform (7.25.6) (with or without JFROG_CLI_BUILD_NAME and JFROG_CLI_BUILD_NUMBER env var) :
-> jf npm-config ....
-> jf npm-ci (or jf npm install)
-> npm run build (or jf npm run build)
-> jf scan-npm --watches...
Expected behavior
Have a local xray scan with no error.
It's ok with JFROG cli 2.11.1 and 2.12.1 and KO with JFROG cli 2.13.0, the causes seems to be this part of 2.13.0 releases notes : Bug fix - Build-info should not be created for 'jf npm install '
Versions
JFrog CLI version: 2.12.0, 2.12.1, 2.13.0
JFrog CLI operating system: Linux (Docker: node:gallium with npm 8.3.1)
Artifactory Version: 7.25.6
Xray Version : 3.32.2
Workarounds
Do scan just after jf npm-ci
Do a jf npm-ci/install or an npm prune after npm run build
The text was updated successfully, but these errors were encountered:
Describe the bug
Since 2.13.0 jfrog cli version, when i run
jf npm install/ci
,npm run build
(ng build) and thenjf audit-npm
i have the following message in the audit-npm output :If i run an
npm prune
orjf npm ci
after the npm run build, then I have no error, so it seems that the ng build change npm local cache and then it produces the error.To Reproduce
-> Launch the following commands in the project with a jfrog cli configured to uses Artifactory platform (7.25.6) (with or without JFROG_CLI_BUILD_NAME and JFROG_CLI_BUILD_NUMBER env var) :
-> jf npm-config ....
-> jf npm-ci (or jf npm install)
-> npm run build (or jf npm run build)
-> jf scan-npm --watches...
Expected behavior
Have a local xray scan with no error.
It's ok with JFROG cli 2.11.1 and 2.12.1 and KO with JFROG cli 2.13.0, the causes seems to be this part of 2.13.0 releases notes : Bug fix - Build-info should not be created for 'jf npm install '
Versions
Workarounds
The text was updated successfully, but these errors were encountered: