# Troubleshooting
We collect the most common troubleshooting of using Node.js for your reference:
# How can I use the logs?
You can find the keywords Failed or error from the logs directory: /data/logs
# Nginx service restart error
Please make sure the default.conf
is correct for you, and you can track and analyze log files from /var/log/nginx
# How to NPM Prevent Permissions Errors
If you see an EACCES
error when you try to install a package globally, read this chapter (opens new window)
# If npm is broken
please re-install npm
curl -L https://www.npmjs.org/install.sh | sh
# Try clearing the npm cache
Sometimes npm's cache gets confused. You can reset it using:
npm cache clean