Skip to content

Instantly share code, notes, and snippets.

@felipekm
Created July 29, 2021 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felipekm/784d4fbdf950b5882b96086ff233e9d5 to your computer and use it in GitHub Desktop.
Save felipekm/784d4fbdf950b5882b96086ff233e9d5 to your computer and use it in GitHub Desktop.
Fixes sharp npm package installation
# inside your project folder creates the node_modules with sudo and give it permission
sudo mkdir node_modules/
sudo chmod 777 node_modules/
# now you can install the dependencies with no need of '--unsafe-perm' or '--allow-root'
sudo npm i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment