ZenVoich / mops

Package manager for the Motoko programming language
https://mops.one
MIT License
35 stars 3 forks source link

mops install - ERR_UNHANDLED_REJECTION #221

Open galihlprakoso opened 3 months ago

galihlprakoso commented 3 months ago

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
ZenVoich commented 3 months ago

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

galihlprakoso commented 3 months ago
CLI 0.42.1
API 1.2

Mac OS. @ZenVoich

ZenVoich commented 3 months ago

Please try these steps:

rm -rf .mops
mops cache clean
mops install

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