-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sudo权限问题导致如图错误 #8
Comments
@holysor 操作系统是什么? |
@xudafeng mac OS 10.11.3 |
@holysor |
@holysor 如下步骤操作试一下
|
@xudafeng 运行第一条命令就 一堆警告。。额 |
@xudafeng 跟sudo应该没关系吧,我去掉一样报错。 |
@xudafeng 好蛋疼啊,还是出现截图的一样的错误。 |
@holysor 先 |
@xudafeng |
@xudafeng 我卸载后 重新zhi'x执行npm i macaca-client -g 下载成功, |
@xudafeng 整个下载到make过程我是在macaca-desktop-sample文件夹下完成, |
@xudafeng 我在根目录下执行成功了 |
@holysor 💯 |
@xudafeng 多谢啊,看来主要是sudo问题 |
@holysor 文章要细看哦 |
@xudafeng 嗯嗯 |
platform=android macaca run --server --verbose -d ./macaca-test/macaca-mobile-sample.test.js
Error: spawn /usr/local/lib/node_modules/.macaca-client_npminstall/mocha/2.2.4/.bin/mocha ENOENT 我也遇到这个问题,并且已经按照上面的步骤重新执行了,还是这样 |
@Solomo-vip 你是执行pc示例吗? |
执行android端的,我已经连接了真机,且adb devices |
@Solomo-vip 先不用 cnpm,用 npm 装下试试 |
使用npm果然可行,应该不报这个错误了 |
|
$ sudo chown -R $(whoami) /usr/local |
MINGW64 /d/test/macaca-test-sample-master
|
执行下面的命令,以后就不需要sudo也可以运行命令行了
sudo chown -R $USER /usr/local
具体步骤:
1.通过npm下载github上的macaca-test-sample样例
2.进入到macaca-test-sample目录执行命令:npm install
3.运行命令:make test-ios或者make test-pc
错误,如图(图片显示不出来。。。):
platform=ios macaca run --server --verbose -d ./macaca-test/macaca-mobile-sample.test.js
Error: spawn /usr/local/lib/node_modules/.macaca-client_npminstall/mocha/2.2.4/.bin/mocha ENOENT
at exports._errnoException (util.js:890:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:182:32)
at onErrorNT (internal/child_process.js:348:16)
at _combinedTickCallback (node.js:383:13)
at process._tickCallback (node.js:407:11)
The text was updated successfully, but these errors were encountered: