Closed mrrossmullen closed 3 years ago
Error isolated to testing for pancake conditional logic in helper.js
where the auto-save
key existence is checked in package.json
// testing for pancake config
if( packagesPKG.pancake['auto-save'] !== undefined ) {
error += `The module ${ module } has the pancake config saved though we don’t want that…\n`;
}
Removal of this conditional check causes npm audit fix
to complete successfully. However, a more permanent solution needs to be identified.
Incorrect understanding of the build process results in this error. As a component producer (DTA) npm audit fix
shouldn't be run within the packages, update package.json
and package-lock.json
using ncu
https://www.npmjs.com/package/npm-check-updates
Bug Report
What happened
Running
npm audit fix
within packages/callout displays:Additionally different Mac/PC and Node/npm versions don't display the error universally.
What I expected to happen
npm audit fix
to complete successfully and update dependencies.Reproducing
@gov.au/callout
3.0.2
1.0.0
14.15.4
6.14.10
package.json
:Steps to reproduce:
cd packages/callout
npm audit fix
Attachments