Record a problem when deploying thinkjs service in Linux

Time:2021-6-13

Problem presentation

After pulling the code through git, run NPM install to install the dependency
It is found that think Babel cannot be installed
Cannot find module ‘think-babel’
As shown in the figure:
Record a problem when deploying thinkjs service in Linux
Later, I found out that there was a problem of authority
node: Permission denied

resolvent

npm config set user 0
npm config unsafe-perm true