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
using nvm with blocked VBScript engine #383
Comments
Unfortunately, there's no way to do this. The VBScript runs the elevation command, which is required to symlink node into the file system. I would be open to PR's if someone has an alternative. The ideal situation would be to embed this into the Go app, but I haven't had enough time to explore this. |
@h404bi Thanks for the code! I get a @coreybutler do you have any opinion what direction you will be going, considering #79? |
@AllainPL settings.txt root: C:\Users\<omitted>\path\to\nvm-windows\nodejs
arch: 64
proxy: none I use nvm in user-space, which means all my nvm and node stuffs are stored in my But this all means that I couldn't mange the system-wide installed nodejs, I think it's ok for me, I don't have system-wide installed nodejs , just use that one in my user-space, all things good. |
@AllainPL - my leaning is towards making the symlink type configurable as a setting. However; this would most likely be a 2.X.X feature, so no immediate ETA. Once I release Fenix 3, I should have alot more time to focus on the next release. |
BTW: If the user has PowerShell installed, you can possibly avoid using VBScript for a UAC prompt using the following command line instead: powershell -NoLogo Start -Verb:RunAs -Wait -FilePath:<executable> -ArgumentList:<args> |
Also, if you install nvm-windows with the NodeJS path set to a user-local folder (such as @setlocal
@echo off
set CMD=%*
REM Old 'elevate.cmd' commands...
REM set APP=%1
REM start wscript //nologo "%~dpn0.vbs" %*
REM New 'elevate.cmd' commands...
%CMD:mklink /D=mklink /J% This executes the command without elevation, replacing |
The way node version manager works is to create a symbolic link: C:\Program Files\nodejs <========> C:\Users\[myuser]\AppData\Roaming\nvm\[version] To set the symbolic link manually, you can run the following commands (with admin right): cmd /C rmdir "C:\Program Files\nodejs"
cmd /C mklink /D "C:\Program Files\nodejs" "C:\Users\myuser\AppData\Roaming\nvm\v12.22.6" |
Hi, i have a question. I have a computer that has blocked VBScript engine by domain policy. Is it possible to run nvm? Because even with elevated command prompt(or PS) i stil get the info about the missing script engine. Is there a workaround to use nvm without it?
The text was updated successfully, but these errors were encountered: