当前位置:网站首页>automation - Jenkins pipline 执行 nodejs 命令时,提示 node: command not found
automation - Jenkins pipline 执行 nodejs 命令时,提示 node: command not found
2022-07-02 06:22:00 【原小明】
遇见的问题描述:最近使用 jenkins pipline 部署前端项目的时候,执行 node 命令,发现怎么都执行不了,而登录服务器的时候,可以正常执行,而且环境变量进行了配置的,后请教了大神杨 说是软连接的问题,后进行设置后,就可以执行了;
为什么 java 命令可以执行,而node命令就要设置软连接呢?
请在评论告诉我。
解决
通过ln命令设置node和npm的软连接
ln -s /XX/bin/node(下载的node.js中的node) /usr/local/bin/node(软连接的node)
ln -s /XX/bin/npm(下载的node.js中的npm) /usr/local/bin/npm(软连接的npm)
边栏推荐
- DeprecationWarning: .ix is deprecated. Please use.loc for label based indexing or.iloc for positi
- js中正则表达式的使用
- LeetCode 283. 移动零
- 利用NVIDIA GPU将Minecraft场景渲染成真实场景
- Golang -- map capacity expansion mechanism (including source code)
- Sentinel 阿里开源流量防护组件
- Invalid operation: Load into table ‘sources_ orderdata‘ failed. Check ‘stl_ load_ errors‘ system table
- Data science [viii]: SVD (I)
- 构建学习tensorflow
- RestTemplate请求时设置请求头,请求参数,请求体。
猜你喜欢
随机推荐
Monitoring uplink of VRRP
Linked list (linear structure)
LeetCode 77. 组合
Contest3145 - the 37th game of 2021 freshman individual training match_ H: Eat fish
数据科学【九】:SVD(二)
MySQL的10大经典错误
利用NVIDIA GPU将Minecraft场景渲染成真实场景
Ruijie ebgp configuration case
Lucene Basics
Sentinel 阿里开源流量防护组件
【程序员的自我修养]—找工作反思篇二
CUDA用户对象
CUDA中的线程层次
Redis——大Key问题
The difference between session and cookies
找到页面当前元素z-index最高的数值
深入了解JUC并发(一)什么是JUC
深入学习JVM底层(四):类文件结构
LeetCode 39. Combined sum
稀疏数组(非线性结构)