Search code examples
node.jsnpminstallationpackage.jsonprocessmaker

Error with NPM during the Developer Installation of ProcessMaker 4 (EBADENGINE)


During the Development installation of the NPM after introducing the npm install command on the Windows command prompt an error log appears

npm ERR! code EBADENGINE
npm ERR! engine Unsupported engine
npm ERR! engine Not compatible with your version of node/npm: @processmaker/[email protected]
npm ERR! notsup Not compatible with your version of node/npm: @processmaker/[email protected]
npm ERR! notsup Required: {"npm":"~8","node":">=16.18 >19"}
npm ERR! notsup Actual:   {"npm":"8.19.2","node":"v18.12.1"}

As you see I already modified the package.json to make it work with the current version of Node and NPM but for some reason it does not recognize it.

Im installing it on a Xampp in Windows 10.


Solution

  • As the error message mentioned, your node version is too high. The supported node versions for that project are ~16.18 meaning 16.18 + patches (16.18.x). You will need to downgrade to a 16.18.x version. I highly recommend setting up a node version manager; I'm not sure what people use on Windows these days, but I use NVM for macOS.