我曾经成功运行 Protractor 测试(在 Mac 上),我尝试升级版本,所以我运行了
I used to run Protractor tests successfully (on Mac) and I tried to upgrade version, so I ran
$npm install -g protractor
它似乎有效 - 运行时
and it seemed like it worked - when running
$protractor --version
我明白了
Version 1.8.0
但是现在,当运行时
$webdriver-manager start
我明白了
fs.js:642
return binding.mkdir(pathModule._makeLong(path),
^
Error: EACCES, permission denied '/usr/local/lib/node_modules/protractor/selenium'
at Object.fs.mkdirSync (fs.js:642:18)
at Object.<anonymous> (/usr/local/lib/node_modules/protractor/bin/webdriver- manager:108:6)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3
有什么想法吗?
你需要使用 sudo
运行 webdriver-manager update
:
You need to run webdriver-manager update
with sudo
:
$ sudo -s
$ webdriver-manager update
这篇关于webdriver-manager 更新错误:EACCES,权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!