3 ms·
There is no easy way to do it. Wish yarn/npm had an --allow-scripts flag. Anyway, this is what you could do. Find out which packages require postinstall script
by notpublic 6y ago
There is no easy way to do it. Wish yarn/npm had an --allow-scripts flag.
Anyway, this is what you could do. Find out which packages require postinstall scripts and then run it manually:
$ grep postinstall node_modules/**/package.json
node_modules/node-sass/package.json: "postinstall": "node scripts/build.js",
$ cd node_modules/node-sass/
$ yarn run postinstall
On the positive side, you get to know more about the dependency that you are trying to add :)