UI Architect, Full Stack Web Developer – San Francisco Bay Area (Walnut Creek), CA
UI Architect, Full Stack Web Developer – San Francisco Bay Area (Walnut Creek), CA

Nasty NPM Error

Looks like somebody broke something!

Somewhere between Node v18 and Webpack 5, this little error started appearing: ‘digital envelope routines::initialization error’

Fortunately, I found a pretty simple workaround:

In your package.json file, add this prefix to the scripts that break:

export NODE_OPTIONS=--openssl-legacy-provider

For example, instead of just start-storybook -p 6006, add this:

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.