Comments (11)
能够使用node -v,但是本地node的路径和workflow中写的路径是一致的
我现在的做法就是手动修改workflow中路径,如下图
我这边也尝试修改bash中执行的脚本
node_address=`which node`
$node_address common_search.js 1 "{query}"
但是debug发现bash无法找到node路径。但是我本地的bash这行代码是没问题的,您能看看是什么原因吗?
from flow.
现在node并不在/usr/local/bin/目录下,我查看了本地的目录也是没有的,只存在于.nvm目录下
from flow.
@modarend 你在终端输入 node -v 能否打印出相应版本号? 用 nvm 安装 node 并没有问题的
from flow.
而且在workflow中即使执行which nvm
,也是找不到的nvm的。如果能够实现bash获取本地的node路径,然后执行common_search.js
我想就能很好的解决这个问题
from flow.
这是个很严重的问题,如果无法用nvm重的node地址,这个插件的可用性就降低了,因为node路径写死了,需要版本控制node的人怎么办?
from flow.
@DraculaPrince bash 这块我不太熟悉:smile:, 欢迎 pr
from flow.
可以使用 run-node包,动态获取node地址 ./node_modules/.bin/run-node common_search.js
from flow.
可以使用 run-node包,动态获取node地址 ./node_modules/.bin/run-node common_search.js
感觉可行
from flow.
@yangcore @IdealBoy709 已更新, 可以重新下载下。
from flow.
@yangcore @ IdealBoy709已更新,可以重新下载下。
测试可以了
from flow.
👍
from flow.
Related Issues (20)
- Alfred 4用不了 HOT 4
- 为什么我输入code 然后输入项目名称 啥也没反应 HOT 3
- 工作流 HOT 2
- 求添加京东搜索 HOT 3
- 掘金的api换了 HOT 3
- 能否增加对csdn和b站以及v2ex还有gitee的支持 HOT 2
- macOS 12.3 gold 触发词失效 HOT 3
- 支持一键切换强/弱网环境提升开发效率 HOT 1
- 【Todo】支持集成 chatgpt-api HOT 1
- 优化代码组织结构 HOT 1
- 代理模式优化 HOT 1
- 支持快速挪动某文件到目标文件下
- 支持快捷键 template
- whistle 抓包工具调研 HOT 1
- code 命令支持打开任意文件代替指定目录 HOT 1
- 基于 Rust 实现批量压缩图片/视频能力 HOT 1
- 移除 node.js 环境依赖
- 批量移除项目中 git 的冲突分支、发布分支
- 无法触发智能联想 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flow.