Cannot find module ‘think Babel’ error

Record the problems when I deploy thinkjs service in Linux

Problem presentation

After entering Linux, pull the code and install the dependency through NPM install
I found that I couldn’t install think Babel
Later, it was found that it was caused by node: permission denied

Cannot find module 'think Babel' error


npm config set user 0
npm config unsafe-perm true

If your problem is solved, thank you very much