Protractor 不是内部或外部命令、可运行程序或批处理文件 [英] Protractor is not recognized as an internal or external command, operable program or batch file

查看:21
本文介绍了Protractor 不是内部或外部命令、可运行程序或批处理文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 windows slave 机器上安装了量角器.我正在尝试使用 node index.js 运行我的脚本.如果我从 jenkins 触发作业以运行上面的命令,它会给出错误,例如 Protractor 无法识别为内部或外部命令、可运行程序或批处理文件..但是当我直接在从机上运行命令时,它会成功执行它.

I have protractor installed on windows slave machine. I am trying to run my script using node index.js. If I trigger job from jenkins to run above command it gives error like Protractor is not recognized as an internal or external command, operable program or batch file.. But when I run command directly on slave machine it execute it successfully.

推荐答案

如果您在启动 Jenkins 服务器后安装了 NodeJS,则会出现此问题.

This Issue occurs because if you have installed the NodeJS after starting the Jenkins server.

解决方法很简单:重启你的 Jenkins 服务器

The solution is simple: Restart your Jenkins Server

这篇关于Protractor 不是内部或外部命令、可运行程序或批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆