V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Spectre
V2EX  ›  Node.js

npm 安装 jshint 后显示不是内部命令咋办!

  •  
  •   Spectre · 2016-12-03 00:02:09 +08:00 · 2190 次点击
    这是一个创建于 2917 天前的主题,其中的信息可能已经有所发展或是发生改变。
    18 条回复    2016-12-05 23:59:47 +08:00
    bdbai
        1
    bdbai  
       2016-12-03 00:09:44 +08:00 via Android
    用管理员权限运行 cmd 然后 npm install -g jslint
    Spectre
        2
    Spectre  
    OP
       2016-12-03 00:09:49 +08:00
    data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdUAAADsCAIAAACt2atxAAAgAElEQVR4Ae1dW680x1U9p6fnswlIgBACBQXEE3/DfwaJAM7FOFcn2HngGgWSCEUoETzA30DIDwhFCKREgShRJEhCAkmMkzi2Y/tcZlg9215nu6qruvo6PTOrv+POrl1rr71r9cxOq2em++rbP/jJS6++8fvv+8CVNikgBaSAFFhQgarebjdVsy2YVKmkgBSQAlLgqqo3m2ts1bXEkAJSQApIgSUVqDcV+u9Vda3z3yVlVy4pIAWkwKHxov/iDFhiSAEpIAWkwJIK1Gi9V+q9S0quXFJACkiBgwK47qvuq9eCFJACUuAICuiy7xFEV0opIAWkABSo9ld7CSEFpIAUkALLK1AH7ff5559nEU888QTtcsMYLNbb5QxzIDOVcMmF681QtVbeF99KchTncStfPrtlNKn9iyHlX+yglEjBIn3lvsISEo+XvYAC1X7/cAbMI+S7Z6YIHvIMZsmpVD300/BVpV6vHrOY3VrhgOyT8BS+DAaUt1hILx2wXltyUF7KH8COO2ytfHBJvXQbnEWBNa4+WAM2xVNHkccjAMAfeI6raVyPXxdsbCML7htejkdtk6g3FQ+KQfFgw1a+ikmWYKlHUqHskQwrCZ9E/HKSs9FtJYcvU0Z4/YHQkqMFDA4VthIwmIFs5W/102lZEMgsnPJOszGFjUimazWAjP2xk2x+qtUJNvpht+JTfoJpGJUfms0UnPJ56aRRiAfMQogHrTHDj838MA7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OlQrydqcfUs1fN+ota1a9UiB4ypQ49FvYxvwcVewmuxBS/LDWfvUVOTlPH5pq5FfhUiB01MA579XOP8dfRHi9Fbet2I0Hf+H8PKG1TdXgGde84/Jy1gaeU7CAsOGfh/UrKEUkAKdCtS7HR49j3/qwJ1atQN8Y6INKGz783YAMEbvNHDsN4xHwrY/AzMwwNBPWGCkeAJYMPRZgikNpYAUKFXgG//z0o9feeN9H/hoaYBwoxUI+ib5Un4D5GdJIkMKSIFTUaDa7Q/nv7oCsdQR45kjDcvMIQ364TFnMLVUycojBaTAPAp89dsv/vDl19/79EfmoRerFJACUkAKtCtQ4fLv4RsQuv7bLpC8UkAKSIGZFKj21oD1+dtMAotWCkgBKZBQwK7/Xu10/TchkNxSQApIgZkUwPnv4ctn2GuTAlJACkiBBRWoD7+9OFwCHpp15O+Dh6adLK7wqwX87gGNkRUU5s1kCSrhkAZivZ2iCjDBMI7yAG/HSHmkgBTIKIB7rzezOvvNaGRTyzSa8iyGxN7+UCQ9ZvthZnWEBTypEI9n0hRYfikgBTIK1IcnX6
    bdbai
        3
    bdbai  
       2016-12-03 00:10:14 +08:00 via Android
    @bdbai jslint -> jshint
    Spectre
        4
    Spectre  
    OP
       2016-12-03 00:10:43 +08:00
    @bdbai 额 我使用了管理员了 还是不行
    Spectre
        5
    Spectre  
    OP
       2016-12-03 00:12:34 +08:00
    @bdbai jslint->jshint 是啥意思
    Biwood
        6
    Biwood  
       2016-12-03 00:14:43 +08:00
    1. 检查 node.js 的环境变量是否配置正确
    2. 检查本机安装的 node 版本是否满足 jshint 的要求
    3. 安装 jshint 的时候是否加了 -g 参数
    bdbai
        7
    bdbai  
       2016-12-03 00:15:55 +08:00 via Android
    @Spectre 安装的时候有没有带 -g 参数?
    我上面把 jshint 写成了 jslint ,改一下。

    还有贴图可以直接放新浪微博原图地址。
    Spectre
        8
    Spectre  
    OP
       2016-12-03 00:20:47 +08:00
    @bdbai 额 没放过图片。。 放了-g 的
    Biwood
        9
    Biwood  
       2016-12-03 00:21:26 +08:00
    另外提个建议,玩 node 还是不要用 windows 了,要么用 Linux ,要么用 macOS ,出错的几率会小很多
    Spectre
        10
    Spectre  
    OP
       2016-12-03 00:21:47 +08:00
    @Biwood 版本 v6.2.0 cmd 中可以-v 查看到 带了-g 参数的 也是管理员运行的
    Spectre
        11
    Spectre  
    OP
       2016-12-03 00:22:17 +08:00
    @Biwood 额 是安装那个使用 sublime 插件的 不是玩 node 的
    Biwood
        12
    Biwood  
       2016-12-03 00:25:37 +08:00
    @Spectre sublime 插件也是调用 node 命令而已,以前我也在 windows 上折腾过,隔三差五报错,后来转 mac 平台了,再也没遇到这种奇葩问题
    Spectre
        13
    Spectre  
    OP
       2016-12-03 00:27:10 +08:00
    @Biwood 是啊 蛋疼 我看 node 模块里有 jshint 了 node -v 可以有的 jshint 就没。
    ericls
        14
    ericls  
       2016-12-03 03:44:46 +08:00
    which jshint
    kingze1992
        15
    kingze1992  
       2016-12-03 09:09:39 +08:00 via Android
    没用过 jshint 。只用 eslint
    g0thic
        16
    g0thic  
       2016-12-03 17:42:16 +08:00
    用 eslint 吧
    m31271n
        17
    m31271n  
       2016-12-04 10:15:22 +08:00
    jsxxxx 代码已经合并到 esxxxx 了,而且 jsxxxx 也说不维护了吧。
    Spectre
        18
    Spectre  
    OP
       2016-12-05 23:59:47 +08:00
    @g0thic 配置理解不对啊 求教咋配置
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2900 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 00:28 · PVG 08:28 · LAX 16:28 · JFK 19:28
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.