etnetera / owasp-dependency-check

MIT License
6 stars 13 forks source link

Upgrading Causes Errors #7

Closed msaperst closed 2 years ago

msaperst commented 2 years ago

Upgrading to 0.0.19 doesn't work, it throws the error: Error: Cannot find module 'fs/promises' This appears to usually caused by missing node modules or package-lock.json files, but all of these are present.

centi commented 2 years ago

The module fs/promises is available in Node.js version 14+. Please try upgrading your Node.

I'll update the package.json and add this requirement.

centi commented 2 years ago

I published a new version (0.0.21), which has the required Node.js version specified in the package.json. This information is now in the README.md aswell.

Installing with an unsupported version (lower than 14) will show warnings in the console.