env:node:没有这样的文件或目录(使用jenkings,windows机器,节点和远程web界面)(env: node: No such file or directory (using jen

编程入门 行业动态 更新时间:2024-10-23 23:33:25
env:node:没有这样的文件或目录(使用jenkings,windows机器,节点和远程web界面)(env: node: No such file or directory (using jenkings, windows machine, node and a remote web interface))

最近,我正在做一个ios版本,通过我的IP地址使用远程web界面远程启动一个mac slave。

我已经尝试卸载节点/ npm并重新安装它,但在安装cordova后它仍然收到相同的错误。

我还检查了我的节点目录是否没有错,而且没问题:

我也已经尝试了将set +e放在shell脚本顶部的解决方案,但在此之后它仍然不起作用。

我已经试图解决这个问题5天了,但它仍然没有解决,所以我希望你们可以在这种情况下进一步帮助我。

这个错误发生在ios版本开始时。

Started by upstream project "CordovaHelloWorld" build number 97 originally caused by: Started by user (user) Building remotely on mac-slave (ios) in workspace /Users/(username)/Desktop/jenkinsMacSlave/workspace/CordovaHelloWorld/PLATFORM/ios > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/(user)/Jenkins # timeout=10 Fetching upstream changes from https://github.com/(user)/Jenkins > git --version # timeout=10 > git fetch --tags --progress https://github.com/(user)/Jenkins +refs/heads/:refs/remotes/origin/ Checking out Revision b08e07983673bdc08dcb6e81d65e83a3cb5edc5c (origin/Jenkinsios) > git config core.sparsecheckout # timeout=10 > git checkout -f b08e07983673bdc08dcb6e81d65e83a3cb5edc5c > git rev-list b08e07983673bdc08dcb6e81d65e83a3cb5edc5c # timeout=10 [ios] $ /bin/sh -xe /var/folders/sj/01rfz4rx1ws_smjvggb_klzw0000gq/T/jenkins150886583207745932.sh + set +e + /usr/local/bin/cordova platform rm ios --no-telemetry --no-update-notifier env: node: No such file or directory + /usr/local/bin/cordova platform add ios --no-telemetry --no-update-notifier env: node: No such file or directory + /usr/local/bin/cordova build ios --no-telemetry --no-update-notifier env: node: No such file or directory Build step 'Execute shell' marked build as failure Finished: FAILURE

我尝试了很多很多解决方案,但都没有成功。 我真的希望这个问题很快得到解决,已经预先感谢了!

编辑:

我已经尝试了以下答案:

https://github.com/nodejs/node-v0.x-archive/issues/3911 Express.js:没有这样的文件或目录 无法安装NodeJs:/ usr / bin / env:node:没有这样的文件或目录 browserify错误/ usr / bin / env:node:没有这样的文件或目录

Lately I am doing an ios build where I remotely launch a mac slave, using a remote web interface through my IP address.

I already tried uninstalling node / npm and reinstalling it, but it still gets the same error after I install cordova.

I also checked if my directory for node wasn't wrong and it's fine:

I also already tried the solution of putting set +e at the top of my shell script, but after that it still doesn't work.

I am already trying to figure this problem out for 5 days and it still isn't solved, so I hope you guys can try to help me out further in this situation.

This error takes place when the ios build starts.

Started by upstream project "CordovaHelloWorld" build number 97 originally caused by: Started by user (user) Building remotely on mac-slave (ios) in workspace /Users/(username)/Desktop/jenkinsMacSlave/workspace/CordovaHelloWorld/PLATFORM/ios > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/(user)/Jenkins # timeout=10 Fetching upstream changes from https://github.com/(user)/Jenkins > git --version # timeout=10 > git fetch --tags --progress https://github.com/(user)/Jenkins +refs/heads/:refs/remotes/origin/ Checking out Revision b08e07983673bdc08dcb6e81d65e83a3cb5edc5c (origin/Jenkinsios) > git config core.sparsecheckout # timeout=10 > git checkout -f b08e07983673bdc08dcb6e81d65e83a3cb5edc5c > git rev-list b08e07983673bdc08dcb6e81d65e83a3cb5edc5c # timeout=10 [ios] $ /bin/sh -xe /var/folders/sj/01rfz4rx1ws_smjvggb_klzw0000gq/T/jenkins150886583207745932.sh + set +e + /usr/local/bin/cordova platform rm ios --no-telemetry --no-update-notifier env: node: No such file or directory + /usr/local/bin/cordova platform add ios --no-telemetry --no-update-notifier env: node: No such file or directory + /usr/local/bin/cordova build ios --no-telemetry --no-update-notifier env: node: No such file or directory Build step 'Execute shell' marked build as failure Finished: FAILURE

I have tried many and many solutions, but none worked. I really hope this problem gets fixed soon, already thanks in advance!

EDIT:

I tried these following answers already:

https://github.com/nodejs/node-v0.x-archive/issues/3911 Express.js: No Such file or directory Cannot install NodeJs: /usr/bin/env: node: No such file or directory browserify error /usr/bin/env: node: No such file or directory

最满意答案

解决方案已被发现。 这是一个mac slave的路径问题。 需要在Jenkins中添加环境变量: PATH + LOCAL_BIN ---- /usr/local/bin

Solution has been found. It was a path problem with mac slave. needed to add environment variable in Jenkins: PATH + LOCAL_BIN ---- /usr/local/bin

更多推荐

本文发布于:2023-07-31 00:25:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1340467.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:节点   界面   机器   文件   目录

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!