search

Home  >  Q&A  >  body text

node.js中的anywhere不能执行

我换了一台电脑,然后重新安装了node.js 然后安装了anywhere的安装包 可是起不了作用
当我敲了anywhere的时候,在命令提示符中出现的是
anywhere不是内部或外部命令,也不是可运行的程序 我在以前的电脑上都是好的

阿神阿神2786 days ago1180

reply all(2)I'll reply

  • 黄舟

    黄舟2017-04-17 14:52:10

    Does the current computer have multiple user accounts? If yes, it is probably because the environment variable points to the file path of another account. Please use the account to reinstall node.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 14:52:10

    Try this method
    Open

    C:\Users(用户)\你的用户名\.npmrc 

    Change this file
    to

    prefix=C:\Program Files\nodejs\node_modules
    cache=C:\Program Files\nodejs\node_cache
    registry = http://registry.cnpmjs.org

    The first two are the two folders under the node installation path

    reply
    0
  • Cancelreply