gpt4 book ai didi

zsh: command not found: ts-node(Zsh:未找到命令:ts-node)

转载 作者:bug小助手 更新时间:2023-10-28 10:25:36 26 4
gpt4 key购买 nike



ts-node appears to be installed, the package is visible users/user/node_modules/ts-node, but when entering ts-node in the command line or trying to run a command I receive the error "zsh: command not found: ts-node".

似乎已安装ts-node,程序包显示为USERS/USER/NODE_MODULES/ts-node,但当在命令行中输入ts-node或尝试运行命令时,我收到错误消息“zsh:Command Not Found:ts-node”。


installed via 'sudo npm install -g ts-node' ; have scoured the first 3-4 pages of google search but no solutions worked.

通过'sudo npm install -g ts-node'安装;已经搜索了谷歌搜索的前3-4页,但没有解决方案。


On a macbook, not sure what needs to be moved/how to move it around so that the system recognizes it's installed. Help would be greatly appreciated.

在MacBook上,不确定需要移动什么/如何移动才能让系统识别它的安装。如果您能帮忙,我们将不胜感激。


更多回答

did you find any solution?

你找到什么解决办法了吗?

优秀答案推荐

Maybe u can use npx ts-node to solve this.

也许您可以使用npx ts-node来解决这个问题。



You can try $ npm init -y on project folder, after run $ npm install -g ts-node.

在运行$npm install-g ts-node之后,您可以在项目文件夹上尝试$npm init-y。



This solution worked for me on Mac: yarn global add ts-node. This will install ts-node globally and then it can be used without any issue.

这个解决方案对我在Mac上很管用:YAR GLOBAL ADD TS节点。这将在全局安装ts-node,然后可以毫无问题地使用它。


更多回答

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com