Skip to main content

Getting Errors when Trying to Run "npm install moralis" on Linux

Errors when using Linux

Written by Iulian Novenschi

If npm install moralis fails on Linux, first check your Node.js and npm versions and read the actual npm error. Use a currently supported Node.js release, then retry in a clean project directory with a working network connection.

Only install an operating-system package such as libudev-dev if your error names it or a native dependency that requires it. It is not a general requirement for installing Moralis.

If the problem continues, send Moralis support the Node/npm versions, Linux distribution, the relevant error lines, and a minimal reproduction. Remove API keys and other secrets from logs before sharing them.

Did this answer your question?