Hi everyone. I hope this is the right place to as...
# orm-help
g
Hi everyone. I hope this is the right place to ask for help. I am trying to run a node program on a fresh Google Cloud instance.
sudo npm install
works fine but
sudo npm start
gives me this error:
Copy code
> npx prisma generate && npx prisma migrate dev && ts-node-dev src/bot.ts

sh: 1: prisma: Permission denied
Unable to find anything about this on Google search. It ran smoothly on my local with the same commands. node version: 16.6.1 npm version: 7.20.3 Any guidance would be greatly appreciated 🙏
c
Think the main issue is because it got installed under Sudo Best practice is to never use sudo for npm commands. It causes node_modules to lock
g
Thanks. But without sudo I get another error with
npm install
.
Copy code
npm ERR! Error: EACCES: permission denied, mkdir