performa icon indicating copy to clipboard operation
performa copied to clipboard

Error during setup

Open onght opened this issue 1 year ago • 1 comments

After the installation, when I ran /opt/performa/bin/control.sh setup, I got the following error:

internal/modules/cjs/loader.js:638 throw err; ^

Error: Cannot find module 'async' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Object. (/opt/performa/bin/storage-cli.js:11:13) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3)

Can someone help me with how to proceed. Thanks

onght avatar Feb 18 '25 08:02 onght

Very sorry you ran into trouble.

Sounds like you installed Node.js but not "NPM". This usually comes bundled with Node.js, but lately I've seen more and more reports of people running into problems like this. It's so bizarre. How does one install Node.js without NPM? So weird.

Anyway, if this is the case, and I suspect it is, you'll need to install NPM on your server, wipe out the Performa directory (/opt/performa) then reinstall from the original command.

I'll put a check in the installer script to make sure NPM is installed before running.

jhuckaby avatar Feb 18 '25 17:02 jhuckaby