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

Installation completes ... then executable does nothing #301

Open
8 of 29 tasks
geekkid1 opened this issue Sep 12, 2017 · 6 comments
Open
8 of 29 tasks

Installation completes ... then executable does nothing #301

geekkid1 opened this issue Sep 12, 2017 · 6 comments

Comments

@geekkid1
Copy link

geekkid1 commented Sep 12, 2017

If this is a question about how to use NVM4W, please use stackoverflow instead.

If this is an issue regarding antivirus, make sure you search the existing issues first.

My Environment

  • Windows 7 or below (not truly supported due to EOL - see wiki for details)

  • Windows 8

  • Windows 8.1

  • Windows 10

  • Windows 10 IoT Core

  • Windows Server 2012

  • Windows Server 2012 R2

  • Windows Server 2016

  • My Windows installation is non-English.

I'm using NVM4W version:

  • 1.1.6
  • 1.1.5
  • 1.1.4
  • 1.1.3
  • 1.1.2
  • 1.1.1
  • Older
  • OTHER (Please Specify)

I have already...

  • read the README to be aware of npm gotchas & antivirus issues.
  • reviewed the wiki to make sure my issue hasn't already been resolved.
  • verified I'm using an account with administrative privileges.
  • searched the issues (open and closed) to make sure this isn't a duplicate.
  • made sure this isn't a question about how to use NVM for Windows, since gitter is used for questions and comments.

My issue is related to (check only those which apply):

  • settings.txt (maybe?)
  • proxy support (Have you tried version 1.1.0+?)
  • 32 or 64 bit support (Have you tried version 1.1.3+?)
  • Character escaping (Have you tried version 1.1.6+?)
  • A standard shell environment (terminal/powershell)
  • A non-standard shell environment (Cmder, Hyper, Cygwin, git)
  • Installation

Expected Behavior

Run the installer, use it correctly, run the program, it works.

Actual Behavior

The above, except it doesn't work. The installer.cmd does absolute jack when I try to run it.
I run the .exe file and it just flashes a cmd window.

Steps to reproduce the problem:

I don't know if this is reproduceable or just something I have wrong with my computer

@coreybutler
Copy link
Owner

On some systems, the installer doesn't quite finish before it tries to launch the terminal. I was never able to force it to run synchronously, so on occasion this occurs. It's rare, but has happened a handful of times. The fix is simple though.... close the terminal and open it again.

@mmikeyy
Copy link

mmikeyy commented Sep 14, 2017

FYI, there seems to be an error in the program which prevents it from doing anything when launched.

When launched, it looks for the "\settings.txt" , can't find it, and crashes.

The file is in the same directory as the executable, NOT in the root directory.

I circumvented this problem by copying the file to the root directory for now.

The only problem now is that the program does nothing useful (version 1.1.6). I ask it to install node 5.12 and it replies that it installed it after a short delay. Then it's impossible to switch to it. And node is not even available anymore at all. Can't ask for the version number, can't run npm.

Installed 1.1.5. Asked for 5.12 to be installed: pgm replied that it's there already. Asked to switch to 5.12: replied done. Checked node version: 5.12. All ok.

@geekkid1
Copy link
Author

geekkid1 commented Sep 15, 2017 via email

nan0 added a commit to nan0/nvm-windows that referenced this issue May 22, 2018
@madebr
Copy link

madebr commented May 21, 2022

I just installed nvm through chocolatey and have the same issue:

ERROR open \settings.txt: The system cannot find the file specified.

(after adding C:\ProgramData\nvm to %PATH%)

@connorjclark
Copy link

nvm install 14

ERROR open C:\Users\cjamc\AppData\Roaming\nvm\settings.txt: The system cannot find the path specified.

I installed via nvm-setup.exe 1.1.9 to C:\nvm (because the default location in AppData results in exit status 1 error when trying to use a node).

Edition	Windows 10 Home
Version	21H2
Installed on	‎1/‎4/‎2021
OS build	19044.1766
Experience	Windows Feature Experience Pack 120.2212.4180.0

@dylanh724
Copy link

dylanh724 commented Sep 26, 2022

I just installed nvm through chocolatey and have the same issue:

ERROR open \settings.txt: The system cannot find the file specified.

(after adding C:\ProgramData\nvm to %PATH%)

This issue still exists in 2022 with Windows 11. For example, if you install via choco (silent CLI script), it installs fine -- but does not work until you restart Powershell; not even with the standard scripts to refresh the env vars, eg:

$env:Path = [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User")

nvm is completely unusable until you restart PS - there's something undocumented that needs to happen in addition to refreshing the env vars.
Expected: Running the script above should refresh the env vars and allow nvm to be fully usable.

EDIT: Found a temporary workaround:

$env:NVM_HOME="C:\ProgramData\nvm"
$env:NVM_SYMLINK="C:\Program Files\nodejs"

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

6 participants