Coder Social home page Coder Social logo

Comments (11)

IdealBoy709 avatar IdealBoy709 commented on June 3, 2024 1

能够使用node -v,但是本地node的路径和workflow中写的路径是一致的
image
我现在的做法就是手动修改workflow中路径,如下图
image

我这边也尝试修改bash中执行的脚本

node_address=`which node`
$node_address common_search.js 1 "{query}"

但是debug发现bash无法找到node路径。但是我本地的bash这行代码是没问题的,您能看看是什么原因吗?

from flow.

IdealBoy709 avatar IdealBoy709 commented on June 3, 2024 1

现在node并不在/usr/local/bin/目录下,我查看了本地的目录也是没有的,只存在于.nvm目录下

from flow.

MuYunyun avatar MuYunyun commented on June 3, 2024

@modarend 你在终端输入 node -v 能否打印出相应版本号? 用 nvm 安装 node 并没有问题的

from flow.

IdealBoy709 avatar IdealBoy709 commented on June 3, 2024

而且在workflow中即使执行which nvm,也是找不到的nvm的。如果能够实现bash获取本地的node路径,然后执行common_search.js 我想就能很好的解决这个问题

from flow.

DraculaPrince avatar DraculaPrince commented on June 3, 2024

这是个很严重的问题,如果无法用nvm重的node地址,这个插件的可用性就降低了,因为node路径写死了,需要版本控制node的人怎么办?

from flow.

MuYunyun avatar MuYunyun commented on June 3, 2024

@DraculaPrince bash 这块我不太熟悉:smile:, 欢迎 pr

from flow.

yangcore avatar yangcore commented on June 3, 2024

可以使用 run-node包,动态获取node地址 ./node_modules/.bin/run-node common_search.js

from flow.

MuYunyun avatar MuYunyun commented on June 3, 2024

可以使用 run-node包,动态获取node地址 ./node_modules/.bin/run-node common_search.js

感觉可行

from flow.

MuYunyun avatar MuYunyun commented on June 3, 2024

@yangcore @IdealBoy709 已更新, 可以重新下载下。

from flow.

yangcore avatar yangcore commented on June 3, 2024

@yangcore @ IdealBoy709已更新,可以重新下载下。

测试可以了

from flow.

MuYunyun avatar MuYunyun commented on June 3, 2024

👍

from flow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.