Prevent permission errors at installation
If you see an EACCES error when you try to install a lumber-cli globally, follow this tutorial.
Last updated
Was this helpful?
If you see an EACCES error when you try to install a lumber-cli globally, follow this tutorial.
Last updated
Was this helpful?
Please be sure of your agent type and version and pick the right documentation accordingly.
This is the documentation of the forest-express-sequelize
and forest-express-mongoose
Node.js agents that will soon reach end-of-support.
forest-express-sequelize
v9 and forest-express-mongoose
v9 are replaced by v1.
Please check your agent type and version and read on or switch to the right documentation.
Depending on how you've installed Node.js on your system, you could encounter a permissions error EACCES similar to the following output.
The problem is because NPM does not have the write access to the directory that will contain the package you want to install (here lumber-cli
).
To solve this issue, we recommend to override the default directory where your global NPM packages will be stored.
Then, configure NPM to use this directory instead of the default one:
Then, make the node executables accessible from your PATH. To do so, export the environment variable PATH by opening or creating the file ~/.profile
and add this line at the end:
Finally, reload the ~/.profile
file:
That's it, now you should be able to install lumber without any error 🎉