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

后端 未结 12 1900
礼貌的吻别
礼貌的吻别 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 08:54

    Linux command for install nodejs and npm

    sudo apt-get install nodejs
    sudo apt-get install npm
    

    Set path in linux

    export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    

    reference https://github.com/microsoft/WSL/issues/3882

提交回复
热议问题