[英]Command eslint --init not found, why?
entered that command into mac terminal set to directory containing javascript file and package.json file, and after installing node.js, and running将该命令输入 mac 终端设置为包含 javascript 文件和 package.json 文件的目录,并在安装 node.js 后运行
npm install -g eslint
but i still get但我仍然得到
-bash: eslint: command not found
so why?所以为什么?
Actually I needed to enter:其实我需要输入:
sudo npm install -g eslint
due to permissions issue由于权限问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.