mops icon indicating copy to clipboard operation
mops copied to clipboard

mops install - ERR_UNHANDLED_REJECTION

Open galihlprakoso opened this issue 1 year ago • 3 comments

I simply tried to execute this command:

mops install

And it's throwing this error:

Checking integrity...
node:internal/process/promises:289
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "[object Array]".] {
  code: 'ERR_UNHANDLED_REJECTION'
}

Node.js v21.7.2

galihlprakoso avatar Apr 06 '24 05:04 galihlprakoso

What version of mops do you use? mops --version What OS?

You can try to upgrade mops to the latest version - npm i -g ic-mops

ZenVoich avatar Apr 06 '24 05:04 ZenVoich

CLI 0.42.1
API 1.2

Mac OS. @ZenVoich

galihlprakoso avatar Apr 07 '24 22:04 galihlprakoso

Please try these steps:

rm -rf .mops
mops cache clean
mops install

If it will not work please share your mops.toml contents

ZenVoich avatar Apr 08 '24 11:04 ZenVoich