env:节点:没有这样的文件或目录(使用jenkings,Windows机器,节点和远程Web界面) [英] env: node: No such file or directory (using jenkings, windows machine, node and a remote web interface)

查看:226
本文介绍了env:节点:没有这样的文件或目录(使用jenkings,Windows机器,节点和远程Web界面)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我正在做一个ios构建,在其中我通过IP地址使用远程Web界面远程启动mac从属.

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

我已经尝试卸载node/npm并重新安装它,但是在安装 cordova

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:

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

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.

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

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.

ios构建开始时发生此错误.

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!

我已经尝试了以下答案:

I tried these following answers already:

  1. https://github.com/nodejs/node-v0 .x-archive/issues/3911
  2. Express.js:没有这样的文件或目录
  3. 无法安装NodeJ:/usr/bin/env:节点:没有这样的文件或目录
  4. 浏览器错误/usr/bin/env:节点:没有这样的文件或目录
  1. https://github.com/nodejs/node-v0.x-archive/issues/3911
  2. Express.js: No Such file or directory
  3. Cannot install NodeJs: /usr/bin/env: node: No such file or directory
  4. 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

这篇关于env:节点:没有这样的文件或目录(使用jenkings,Windows机器,节点和远程Web界面)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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