美文网首页
es学习笔记

es学习笔记

作者: 花生酱_3203 | 来源:发表于2021-02-07 11:30 被阅读0次

node 安装 grunt 在 cmd 下 执行 npm install ‐g grunt‐cli 命令执行报错 

npm ERR! arg Argument starts with non-ascii dash, this is probably invalid: [ '‐g', 'grunt‐cli' ]

npm ERR! code EINVALIDTAGNAME

npm ERR! Invalid tag name "‐g": Tags may not have any characters that encodeURIComponent encodes.

npm ERR! A complete log of this run can be found in:

npm ERR!    C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2021-02-07T03_21_17_506Z-debug.log

解决方案是 以管理员身份 执行 cmd 然后 cd 到 node js的安装目录 然后再执行 就 ok了 

相关文章

网友评论

      本文标题:es学习笔记

      本文链接:https://www.haomeiwen.com/subject/cxhztltx.html