Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm uninstall --global lix should restore previous environment #91

Open
joshtynjala opened this issue Oct 17, 2019 · 3 comments
Open

npm uninstall --global lix should restore previous environment #91

joshtynjala opened this issue Oct 17, 2019 · 3 comments

Comments

@joshtynjala
Copy link

I had to install Lix temporarily for a project, and when I uninstalled it later, everything was broken. Running the haxe or haxelib command in my terminal gives me this error:

PS C:\Users\josht> haxe
internal/modules/cjs/loader.js:716
    throw err;
    ^

Error: Cannot find module 'C:\Users\josht\AppData\Roaming\npm\node_modules\lix\bin\haxeshim.js'
      at Function.Module._resolveFilename (internal/modules/cjs/loader.js:713:15)
      at Function.Module._load (internal/modules/cjs/loader.js:618:27)
      at Function.Module.runMain (internal/modules/cjs/loader.js:931:10)
      at internal/main/run_main_module.js:17:11 {
    code: 'MODULE_NOT_FOUND',
    requireStack: []
}

It would be nice if lix could restore everything back to its original state when I uninstall it.

@al-arz
Copy link

al-arz commented Oct 17, 2019

Seems related: lix-pm/haxeshim#23

@Gama11
Copy link
Member

Gama11 commented Oct 17, 2019

This is part of the reason I only use local Lix installations.

@joshtynjala
Copy link
Author

Yeah, a local installation seems to work well. Unfortunately, I didn't discover that it was an option until after I had used a global installation and messed up my existing environment. 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants