-
Notifications
You must be signed in to change notification settings - Fork 15
Troubleshooting
Anvil has a long way to go but sometimes there are things that just aren't supported yet or need to be correctly configured based on your machine and setup. Here's the known list of common issues:
## Installation ProblemsIf you have installed Node.JS via brew or some other package manager, then you won't have permissions to install node modules globally.
Sounds crazy, but the best way to install and manage multiple node versions is NVM. It will prevent any obnoxious path permissions issues and allow you to easily install new versions and switch between them. If this seems like a non-solution, read on.
sudo chown -R {your user name} /usr/local/lib/node_modules/
After this, you should be able to install modules globally.
No currently known installation issues exist.
## CI Mode ProblemsMost POSIX systems have a relatively low limit on the number of file descriptors that can be open at any given time. To watch a file or directory on *NIX operating systems, a file descriptor is required for each file or directory. This can cause a system configured with a low limit to run out and crash the application requesting additional descriptors.
At the command line, type:
ulimit
To see how many descriptors are available at a time.
If the number is under 1,000, enter the following command to increase the number of allowed descriptors for the length of the current shell session:
ulimit -n 10000
If you're comfortable increasing the limit permanently so that you don't need to increase it every time you open a new command line, type the following in your shell:
launchctl limit maxfiles 10000