Cannot find runtime 'node' on PATH - Visual Studio Code and Node.js

后端 未结 18 2283
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-07 23:54

With a downloaded and installed version of Visual Studio Code 1.2.1, and a 64bit version of node.exe msi placed in my working directory (I am assuming that is correct), how

18条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-08 00:42

    I use /bin/zsh, and I changed vscode to do the same, but somehow vscode still use the path from /bin/bash. So I created a .bash_profile file with node location in the path.

    Simply run in terminal:

    echo "PATH=$PATH
    export \$PATH" >> ~/.bash_profile
    

    Restart vscode, and it will work.

提交回复
热议问题