sudo chown -R $USER ~/.npm sudo chown -R $USER /usr/local/lib/node_modules npm config set unsafe-perm=true // or read this article if this not work https://docs.forestadmin.com/documentation/how-tos/setup/prevent-permission-errors-at-installation