最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - why is nvm (for windows) not working and whenever it runs it gives an error message? - Stack Overflow

programmeradmin0浏览0评论

nvm (for windows )

I have downloaded the nvm-setup and installed it, but whenever it runs it gives an error message.

I've tried to reinstall the nvm, reset the PATH environment variable and install version 1.1.6, and non of it seems to be working.

NVM_HOME points to my nvm file correctly and it's in the PATH.

C:\Users>nvm --version

Running version 1.1.7.

C:\Users>nvm list

12.3.1

C:\Users>nvm use 12.3.1

exit status 1: 'D:\Program' ���O�����Υ~���R�O�B�i���檺�{���Χ妸�ɡC

nvm (for windows https://github./coreybutler/nvm-windows)

I have downloaded the nvm-setup and installed it, but whenever it runs it gives an error message.

I've tried to reinstall the nvm, reset the PATH environment variable and install version 1.1.6, and non of it seems to be working.

NVM_HOME points to my nvm file correctly and it's in the PATH.

C:\Users>nvm --version

Running version 1.1.7.

C:\Users>nvm list

12.3.1

C:\Users>nvm use 12.3.1

exit status 1: 'D:\Program' ���O�����Υ~���R�O�B�i���檺�{���Χ妸�ɡC
Share Improve this question edited May 28, 2019 at 14:11 huha 4,2653 gold badges31 silver badges50 bronze badges asked May 28, 2019 at 13:34 啊鹿Dizzyi啊鹿Dizzyi 1,0587 silver badges16 bronze badges 2
  • I see a string of unprintable characters above. Is that just me - is there an actual error message there? Can you translate it please? – Rup Commented May 28, 2019 at 13:40
  • Do you have a file or folder called "D:\Program"? I assume that's meant to be "Program Files" but something is breaking parsing the path. – Rup Commented May 28, 2019 at 13:43
Add a ment  | 

3 Answers 3

Reset to default 2

This happend when you install nvm in a directory that have spaces in the name, for example: C:\Program Files

Change the install directory for nvm and it solved.

In my case, I also had to install the node in another location without spaces in path

C:\Program Files\nodejs -> C:\nodejs

Try cmd with administrator privileges

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论