当前位置:网站首页>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)
边栏推荐
- CUDA user object
- 一起学习SQL中各种join以及它们的区别
- 介绍两款代码自动生成器,帮助提升工作效率
- Warp matrix functions in CUDA
- Flask-Migrate 检测不到db.string() 等长度变化
- 数据科学【九】:SVD(二)
- CUDA中的动态全局内存分配和操作
- PgSQL学习笔记
- selenium备忘录:selenium\webdriver\remote\remote_connection.py:374: ResourceWarning: unclosed<xxxx>解决办法
- Fe - weex uses a simple encapsulated data loading plug-in as the global loading method
猜你喜欢
随机推荐
Kotlin - verify whether the time format is yyyy MM DD hh:mm:ss
由于不正常断电导致的unexpected inconsistency;RUN fsck MANUALLY问题已解决
Three suggestions for all students who have graduated and will graduate
阿里云MFA绑定Chrome浏览器
程序员的自我修养—找工作反思篇
Data science [9]: SVD (2)
重载全局和成员new/delete
浅谈三点建议为所有已经毕业和终将毕业的同学
Mech 3002 explanation
Linked list (linear structure)
CUDA中的Warp matrix functions
Sudo right raising
selenium备忘录:selenium\webdriver\remote\remote_connection.py:374: ResourceWarning: unclosed<xxxx>解决办法
Alibaba cloud MFA binding Chrome browser
Does the assignment of Boolean types such as tag attribute disabled selected checked not take effect?
ctf三计
CUDA user object
Function execution space specifier in CUDA
Redis——大Key问题
Win10桌面图标没有办法拖动(可以选中可以打开可以删除新建等操作但是不能拖动)