Used the registry editor to add 2 new string varaibles to the regular user's profile. Can't do it through the Control Panel GUI because I'm always forced to use elevated credentials to access the control panel. And then when I do edit the User's environment vars, it's for the admin account only. So now when I open up a command window and run the "set" command, it includes these two variables:
NVM_HOME=C:\Users\<nonAdminUser>\AppData\Roaming\nvm
NVM_SYMLINK=C:\Program Files\nodejs
And now everything just works.
Answer from dot on Stack OverflowUsed the registry editor to add 2 new string varaibles to the regular user's profile. Can't do it through the Control Panel GUI because I'm always forced to use elevated credentials to access the control panel. And then when I do edit the User's environment vars, it's for the admin account only. So now when I open up a command window and run the "set" command, it includes these two variables:
NVM_HOME=C:\Users\<nonAdminUser>\AppData\Roaming\nvm
NVM_SYMLINK=C:\Program Files\nodejs
And now everything just works.
In my case it works without registry editing:
- Switch to admin account
- Go to nvm folder and add share it with user.
- Switch to user account.
- Add %NVM_HOME% and %NVM_SYMLINK% to user PATH variable
- Restart cmd.
Videos
C:\Users\tgmjack\Desktop\chromedriver for lambda>nvm use 18.12.1 Now using node v18.12.1 (64-bit)
and node looks good too
but whenever i try to install
C:\Users\tgmjack\Desktop\chromedriver for lambda>nvm install -g serverless
panic: runtime error: slice bounds out of range [:1] with length 0
goroutine 1 [running]:
main.versionNumberFrom({0x120160b8, 0x2})
C:/Users/corey/OneDrive/Documents/workspace/libraries/oss/coreybutler/nvm-windows/src/nvm.go:496 +0x116
main.getVersion({0x120160b8, 0x2}, {0xd09d26, 0x2}, {0x0, 0x0, 0x0})
C:/Users/corey/OneDrive/Documents/workspace/libraries/oss/coreybutler/nvm-windows/src/nvm.go:233 +0x367
main.install({0x120160b8, 0x2}, {0xd09d26, 0x2})
C:/Users/corey/OneDrive/Documents/workspace/libraries/oss/coreybutler/nvm-windows/src/nvm.go:273 +0xbb
main.main()
C:/Users/corey/OneDrive/Documents/workspace/libraries/oss/coreybutler/nvm-windows/src/nvm.go:87 +0xaeaive always used python, and have no idea whats wrong. searching for the error "panic: runtime error: slice bounds..." seems to bring up such a variety of errors (from docker to github to this) i'm not finding anything useful.
Because im new to node.js (suddenly need it for aws) it must be something basic i'm missing (maybe its because im treating it too much like pip...)
why can i not install serverless?