npm install error `not foundram Files/nodejs/npm: 3: /mnt/c/Program Files/nodejs/npm:`

后端 未结 12 1751
礼貌的吻别
礼貌的吻别 2021-01-30 08:24

I have installed Ubuntu Bash on Windows. I already have nodejs and npm on my windows machine at C:\\Program Files\\nodejs. In the bash she

12条回答
  •  一整个雨季
    2021-01-30 09:07

    I had the same problem to solve I installed "NVM" in my Subsystem

    Follow these steps and see if it will solve for you:

    sudo apt-get update
    
    sudo apt-get install build-essential libssl-dev
    
    curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh -o install_nvm.sh
    
    bash install_nvm.sh
    
    source ~/.profile
    
    nvm install 11.13.0
    

提交回复
热议问题