node.js - sh: 1: node: Permission denied - Stack Overflow https://stackoverflow.com/questions/51811564/sh-1-node-permission-denied
npm config set user 0 npm config set unsafe-perm true
These issues happen because of broken packages. Go to the main folder. If using Linux use command
sudo rm -rf node_modules.