search

Home  >  Q&A  >  body text

node.js - node -v access denied

I just used nvm to install a version 6.10.2. After nvm use 6.10.2, access is denied when checking node-v. Please help me solve it

天蓬老师天蓬老师2751 days ago1947

reply all(3)I'll reply

  • 大家讲道理

    大家讲道理2017-05-16 13:39:13

    Delete it and reinstall it. It turned out to be solved this way. It’s very painful

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-05-16 13:39:13

    The access denial should be due to lack of permission. It is probably because the location where nvm-windows installed the node is in a place where your current account does not have permission.

    You can take a look at this issue.

    reply
    0
  • 阿神

    阿神2017-05-16 13:39:13

    It feels like the node path installed by nvm is not in the environment variable? I'm not sure, you can restart the shell first and then if you still have this problem, try this command.

    sudo chmod 755 $(which node)

    reply
    0
  • Cancelreply