当前位置:网站首页>Automation - when Jenkins pipline executes the nodejs command, it prompts node: command not found
Automation - when Jenkins pipline executes the nodejs command, it prompts node: command not found
2022-07-02 06:35:00 【Xiao Ming Yuan】
Description of problems encountered : Recently used jenkins pipline When deploying front-end projects , perform node command , It's found that it can't be implemented , When logging into the server , It can be executed normally , And the environment variables are configured , Then I asked Great God poplar It's the problem of soft connection , After setting , You can do it ;
Why? java Orders can be executed , and node The command is to set the soft connection ?
Please tell me in the comments .
solve
adopt ln Command settings node and npm Soft connection
ln -s /XX/bin/node( Download the node.js Medium node) /usr/local/bin/node( Flexible connection node)
ln -s /XX/bin/npm( Download the node.js Medium npm) /usr/local/bin/npm( Flexible connection npm)边栏推荐
- sprintf_s的使用方法
- ModuleNotFoundError: No module named ‘jieba.analyse‘; ‘jieba‘ is not a package
- Selenium memo: selenium\webdriver\remote\remote_ connection. Py:374: resourcewarning: unclosed < XXXX > solution
- unittest. Texttestrunner does not generate TXT test reports
- When requesting resttemplate, set the request header, request parameters, and request body.
- pytest(3)parametrize参数化
- Sentinel rules persist to Nacos
- sprintf_ How to use s
- TensorRT的功能
- Tensorrt command line program
猜你喜欢

20201002 vs 2019 qt5.14 developed program packaging

Redis——热点key问题

代码技巧——Controller参数注解@RequestParam

Hydration failed because the initial UI does not match what was rendered on the server.问题原因之一

Log (common log framework)

20201002 VS 2019 QT5.14 开发的程序打包

分布式事务 :可靠消息最终一致性方案

Redis——缓存击穿、穿透、雪崩

pytest(2) mark功能

介绍两款代码自动生成器,帮助提升工作效率
随机推荐
Redis——大Key問題
Pytest (3) parameterize
Tensorrt command line program
Top 10 classic MySQL errors
The intern left a big hole when he ran away and made two online problems, which made me miserable
Code skills - Controller Parameter annotation @requestparam
Detailed definition of tensorrt data format
Win电脑截图黑屏解决办法
In depth understanding of JUC concurrency (II) concurrency theory
MySql索引
Kotlin - 验证时间格式是否是 yyyy-MM-dd HH:mm:ss
TensorRT的数据格式定义详解
Data science [viii]: SVD (I)
Sublime Text 配置php编译环境
介绍两款代码自动生成器,帮助提升工作效率
Eggjs -typeorm 之 TreeEntity 实战
Error "list" object is not callable in Web automatic switching window
Amazon AWS data Lake Work Pit 1
最新CUDA环境配置(Win10 + CUDA 11.6 + VS2019)
FE - 微信小程序 - 蓝牙 BLE 开发调研与使用