本文介绍了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 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界面)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 01:29