Issue when install Drive

i face an issue when installing the drive
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

the installation was not completed

Hi,

The error suggests the operating environment may not be supplying enough RAM for the application to run. Is it being hosted on Frappe Cloud or somewhere else?

Dear @msiam

The “JavaScript heap out of memory” error occurs when the default amount of memory allocated by Node.js is insufficient to complete the given command. This can happen during the installation of Frappe Drive or other large packages. Here are some steps to resolve this issue…

Increase Node.js Memory Limit | node --max-old-space-size=8192 $(which npm) install frappe-drive |

Adjust the memory size (in megabytes) according to your system’s capacity.

Alternatively, you can set the NODE_OPTIONS environment variable to increase the memory limit. On macOS or Linux, you can use the following command:

export NODE_OPTIONS=–max-old-space-size=8192

In Windows, you can set the environment variable through the System Properties.

Run the installation again - npm install frappe-drive