ZenVoich / mops

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

unusable #244

Closed AndreLeifert closed 2 months ago

AndreLeifert commented 2 months ago

mops install /bin/sh: line 1: /home/andre/.cache/mocv/versions/current/moc: No such file or directory node:internal/errors:983 const err = new Error(message); ^

Error: Command failed: /home/andre/.cache/mocv/versions/current/moc /bin/sh: line 1: /home/andre/.cache/mocv/versions/current/moc: No such file or directory

at genericNodeError (node:internal/errors:983:15)
at wrappedFn (node:internal/errors:537:14)
at checkExecSyncError (node:child_process:889:11)
at execSync (node:child_process:961:15)
at getMocVersion (file:///usr/lib/node_modules/ic-mops/dist/helpers/get-moc-version.js:5:17)
at checkRequirements (file:///usr/lib/node_modules/ic-mops/dist/check-requirements.js:12:22)
at installAll (file:///usr/lib/node_modules/ic-mops/dist/commands/install/install-all.js:33:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Command.<anonymous> (file:///usr/lib/node_modules/ic-mops/dist/cli.js:94:18) {

status: 127, signal: null, output: [ null, Buffer(0) [Uint8Array] [], Buffer(89) [Uint8Array] [ 47, 98, 105, 110, 47, 115, 104, 58, 32, 108, 105, 110, 101, 32, 49, 58, 32, 47, 104, 111, 109, 101, 47, 97, 110, 100, 114, 101, 47, 46, 99, 97, 99, 104, 101, 47, 109, 111, 99, 118, 47, 118, 101, 114, 115, 105, 111, 110, 115, 47, 99, 117, 114, 114, 101, 110, 116, 47, 109, 111, 99, 58, 32, 78, 111, 32, 115, 117, 99, 104, 32, 102, 105, 108, 101, 32, 111, 114, 32, 100, 105, 114, 101, 99, 116, 111, 114, 121, 10 ] ], pid: 10054, stdout: Buffer(0) [Uint8Array] [], stderr: Buffer(89) [Uint8Array] [ 47, 98, 105, 110, 47, 115, 104, 58, 32, 108, 105, 110, 101, 32, 49, 58, 32, 47, 104, 111, 109, 101, 47, 97, 110, 100, 114, 101, 47, 46, 99, 97, 99, 104, 101, 47, 109, 111, 99, 118, 47, 118, 101, 114, 115, 105, 111, 110, 115, 47, 99, 117, 114, 114, 101, 110, 116, 47, 109, 111, 99, 58, 32, 78, 111, 32, 115, 117, 99, 104, 32, 102, 105, 108, 101, 32, 111, 114, 32, 100, 105, 114, 101, 99, 116, 111, 114, 121, 10 ] }

Node.js v22.5.1

ZenVoich commented 2 months ago

It seems you are using mocv which is not compatible with new versions of mops. Please uninstall mocv:

mocv reset
npm uninstall -g mocv
AndreLeifert commented 2 months ago

mocv bash: mocv: command not found

P.S. have you noticed the beautiful, meaningful buffers in the original error screen?

On Mon, Aug 19, 2024 at 6:53 AM Zen Voich @.***> wrote:

It seems you are using mocv which is not compatible with new versions of mops. Please uninstall mocv:

mocv reset npm uninstall -g mocv

— Reply to this email directly, view it on GitHub https://u20894783.ct.sendgrid.net/ls/click?upn=u001.n4x5P1Tb5v6PEFbuhlPI7n9j71uEhYSBzWVAnfAirPAm2Bl5S5K6f1ZU5YYKL3sUIxmZcGUCvm0VABoRNcQ0wQutlyDtn-2BwZDiFN4KOwFNo-3D0cai_51r8jo3L-2BhAoYVmO4X6H1wTgtUMpJE6LygukJ10WLgrB1mzxX1tktRBePNzQoUyO9-2FoshvzP9VQo5iwPif5-2FhcWvkaAitZPYus11rBCzZ9xEasmXlkfOkQGoRhVlC2UhLSQxkXYjChhRNfZGXi8egJk8G9KnNhdyUkaRFuQsOSme-2BY1gDgipIRPxV5wRryOlWA5oqU858nlqm0N3GMRmapI2JVnbugoHHFOk7AEKrYR66P7ItXg9PlPy0VOYXIuqWtadzDjnhSy9r-2BZOKlyxyA-3D-3D, or unsubscribe https://u20894783.ct.sendgrid.net/ls/click?upn=u001.n4x5P1Tb5v6PEFbuhlPI7mgKI0g6i0thIOh2XN1MBolo69JwaJNWI9tsNl-2FOFQvCXdNCHTGClhavdacPELd-2FqYPnNZFGbUNXUwnzR59WsitYD4xj-2FuJLpzXB1iZbdyj576p5NA0DWiiIguNicjcOAPH2U7kTtMP6HvXMCqxe76-2BLz62PWtJ7hE1TacWw-2Foh4U9yfrLb6pH66YQdFWD8QEGiYrv-2BJS0P8mr-2B6FM102qo-3D7flV_51r8jo3L-2BhAoYVmO4X6H1wTgtUMpJE6LygukJ10WLgrB1mzxX1tktRBePNzQoUyO9-2FoshvzP9VQo5iwPif5-2FhcWvkaAitZPYus11rBCzZ9xEasmXlkfOkQGoRhVlC2UhMQ7nMOuXWGCt9azaKilY14v6xiQH2pPUX2lA6R9wkPWX-2FLxoN9Q-2Fhdl47YWcH-2Fw4GoE9wk0uzmaHMT-2BpNKk8r3EpTFFwErpDkcyCyCjqiQN6ct8AHiS9-2ByxYCqeP1Cg8x65G5KUUnkzwkV1H5GRq-2Bw-3D-3D . You are receiving this because you authored the thread.Message ID: @.***>

ZenVoich commented 2 months ago

Check your ~/.zshrc and ~/.bashrc and make sure there is no DFX_MOC_PATH=... lines

Make sure echo $DFX_MOC_PATH is empty or moc-wrapper

P.S. have you noticed the beautiful, meaningful buffers in the original error screen?

I noticed your meaningless postscript.

AndreLeifert commented 2 months ago

Thanks very much, Zen.

There was indeed a DFX_MOC_PATH setting in .bashrc. mops is now working as expected :-)

On Mon, Aug 19, 2024 at 10:06 AM Zen Voich @.***> wrote:

Check your ~/.zshrc and ~/.bashrc and make sure there is no DFX_MOC_PATH=... lines

Make sure echo $DFX_MOC_PATH is empty or moc-wrapper

P.S. have you noticed the beautiful, meaningful buffers in the original error screen?

I noticed your meaningless postscript.

— Reply to this email directly, view it on GitHub https://u20894783.ct.sendgrid.net/ls/click?upn=u001.n4x5P1Tb5v6PEFbuhlPI7n9j71uEhYSBzWVAnfAirPAm2Bl5S5K6f1ZU5YYKL3sUIxmZcGUCvm0VABoRNcQ0wXdbLFr8BUWZK7gAixj273I-3DjT91_51r8jo3L-2BhAoYVmO4X6H1-2F6Iqrnmc1AGwTuQs1HG8JTeFVeieoh6Pd3ZZ07YGDT9mEtAm4eMouWCCzVs0f7rvMpDm3tDPtHbX-2FPa26LCoVGnS4HKT6mIblY-2B0MENfia9NaLjw5PteBcMBhCjhskjzA3sdogyUMmhj-2F6x8QrsfSano3NcEBOGeF7Exx1Oz4jKo6YYlOh5DrA1-2FgTcw-2Fzu0TuKREt5I4pfe33D7Wpex5R4xaU0ECbzdvy5zvqBS73AiFvohHyOLFdF1BNxa4tnLw-3D-3D, or unsubscribe https://u20894783.ct.sendgrid.net/ls/click?upn=u001.n4x5P1Tb5v6PEFbuhlPI7mgKI0g6i0thIOh2XN1MBolo69JwaJNWI9tsNl-2FOFQvCXdNCHTGClhavdacPELd-2FqT0aHtFZkW-2BQ683PXQ-2FnLAu1Nb2GfjmH4iRinc5u0QccWax-2B379ef3YRdlO-2F9ZAEzM9GDrBSHxZ6hdqIU-2FkgHZsStDjpdz3FmJQHTQEZhlRaHNAhqXD9WouXaRnCjC5ll5q-2Bi8uq6IzSruI003QWn-2BM-3D1Gjo_51r8jo3L-2BhAoYVmO4X6H1-2F6Iqrnmc1AGwTuQs1HG8JTeFVeieoh6Pd3ZZ07YGDT9mEtAm4eMouWCCzVs0f7rvMpDm3tDPtHbX-2FPa26LCoVGnS4HKT6mIblY-2B0MENfia9qiqI7dXR7jS-2BCo6wt7hwHyzQ9fUjGPbtqtbco8bzzDY8oqG2pcCxtvafGV0V9lho9pc4MljdXzlaytWgpXvLQs2tVM9s5EiVHit94aShSiIId2sGG1ScBeZlA1xE1-2FYTRyCIDFZa0wG80pDNX-2BzLRw-3D-3D . You are receiving this because you authored the thread.Message ID: @.***>