1

I have tried to run

nexe --help

or

nexe index.js

but it has returned this error:

Command 'nexe' not found, did you mean:

  command 'rexe' from snap rexe (0.7)
  command 'next' from deb mailutils-mh (1:3.7-2.1)
  command 'next' from deb mmh (0.4-2)
  command 'next' from deb nmh (1.7.1-6)
  command 'nex' from deb nvi (1.81.6-15build1)

See 'snap info <snapname>' for additional versions.

I am using an Ubuntu system. How do I solve it?

Chris Mutua
  • 123
  • 2
  • 6

1 Answers1

0

Solution

  • First, uninstall the nexe module installed on the system locally and remove it from package.json using:
npm uninstall nexe -S

or if it is a dev dependency, use:

npm uninstall nexe -D -S

If you installed it globally, use:

npm uninstall nexe -g
  • Now install the package using the sudo command as a global package:
sudo npm i nexe -g
  • Run the command again once fully installed:
nexe --help

If it gives out the help console output, run now:

nexe index.js
Chris Mutua
  • 123
  • 2
  • 6