07-21-2023, 02:27 PM
For Angular apps:
You can also edit the `npm start` script in package.json. Instead of
"start": "ng serve -o"
to
"start": "set NODE_OPTIONS=--openssl-legacy-provider && ng serve -o"
When you run `npm run start` in the terminal/command line, it will first set the `NODE_OPTIONS` to avoid the problem.
You can also edit the `npm start` script in package.json. Instead of
"start": "ng serve -o"
to
"start": "set NODE_OPTIONS=--openssl-legacy-provider && ng serve -o"
When you run `npm run start` in the terminal/command line, it will first set the `NODE_OPTIONS` to avoid the problem.