The following steps work:
- Add the following line to
package.json:
"resolutions": {
"@babel/preset-env": "7.5.5"
},
- Run the following command:
$ npx npm-force-resolutions
- Install dependencies:
$ npm install
# or
$ yarn
- Build your project:
$ yarn build
Take a look at this Github Issue