2

We are currently moving everything to yarn and I'm trying to figure out if there is a way to disable npm's ability to add/install/update/delete packages? When searching online it seems like everything is talking about doing this in Visual Studio where as I'm looking for something that would disable this across any of our developers machines and ideally echo the equivalent yarn command.

Is this something that is possible?

tk421
  • 5,775
  • 6
  • 23
  • 34
Jared
  • 5,840
  • 5
  • 49
  • 83
  • create an alias which does an echo instead? – Martijn Jun 27 '18 at 14:22
  • I tried adding an npm script named install and it runs post-install. I believe an alias would need to be setup on each machine (correct?). I'm looking for something that would prevent anyone pulling down our repo from accidentally running anything beyond `npm run [script-name]`. If that *needed* to be disabled as well that is fine since `yarn` can do that as well. – Jared Jun 27 '18 at 14:25

0 Answers0