qianmianyao
V2EX  ›  问与答

想请教一下 git bash 使用 node 和 npm 的问题

  •  
  •   qianmianyao · Nov 3, 2018 · 2420 views
    This topic created in 2766 days ago, the information mentioned may be changed or developed.
    事情是这样的,想在 github 上搭建 hexo,但是第一步遇到了问题

    我把 git bash 安装到了 f 盘,一切正常
    下载了 node 安装成功后,在 cmd 中运行 node -v 以及 npm -v 可以看到 node 和 npm 的版本
    环境变量在系统变量的 path 里面填写了 node 的所在目录"F:\"
    重启电脑后在 gitbash 里面运行 node -v
    却报错"winpty: error: cannot start 'node.exe': Not found in PATH"
    不知道问题出在哪,有大佬指点一下吗。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4007 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 05:08 · PVG 13:08 · LAX 22:08 · JFK 01:08
    ♥ Do have faith in what you're doing.