I tried this but then basic, very popular packages would fail to install properly. I couldn't even run npm start for my projects -- it would fail silently. So I had to revert because I couldn't get any work done.
Was I just doing this wrong?
Was I just doing this wrong?
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 :)if problem, evaluate if you need to install that component and if look at the script.