从OSX命令行访问(伪造环境)的问题

Mat*_*les 6 macos command-line trigger.io forge

我正在关注Trigger.io Forge教程,我无法在OSX 10.8上的命令行中正常工作.

使用终端和Forge教程,我转到forge-workspace文件夹并在终端中输入:

$HOME/Library/Trigger\ Toolkit/forge create 
Run Code Online (Sandbox Code Playgroud)

并得到这个:

Matts-MacBook-Pro:forge-workspace mattm$ $HOME/Library/Trigger\ Toolkit/forge create
[   INFO] Forge tools running at version 3.3.17
[   INFO] Update result: you already have the latest tools

This name is what your application will be called on devices. You can change it later     through config.json.
App Name: Weather App
[   INFO] Registering new app "Weather App" with trigger.io...
[   INFO] Fetching initial project template
[   INFO] Building app for the first time...
[   INFO] Update result: you already have the latest tools
[   INFO] App structure created. To proceed:
[   INFO] 1) Put your code in the "src" folder
[   INFO] 2) Run forge build to make a build
[   INFO] 3) Run forge run to test out your build
Matts-MacBook-Pro:forge-workspace mattm$ 
Run Code Online (Sandbox Code Playgroud)

教程说:

此时,您应该打开一个命令终端,如下所示:

(forge-environment)
Run Code Online (Sandbox Code Playgroud)

但这并没有显现出来.另外,当我查看我的库目录(并进行全系统搜索)时,我看不到任何标记为Trigger的文件夹.

当我尝试按照教程指示并执行诸如使用forge create命令之类的操作时,没有任何反应:

Matts-MacBook-Pro:hello-world mattm$ forge create</p>
-bash: forge: command not found

Matts-MacBook-Pro:hello-world mattm$ $forge create</p>
-bash: create: command not found
Run Code Online (Sandbox Code Playgroud)

在你问之前,是的,我安装了Python,并且能够使用Forge浏览器界面构建和运行应用程序.

知道我错过了什么吗?

Joh*_*lls 10

在Mac OS X上,将以下内容添加到bash配置文件中

export PATH=$PATH:/Applications/TriggerToolkit.app/Contents/MacOS/
Run Code Online (Sandbox Code Playgroud)


Ami*_*hoo 2

我已向入门文档推送更新以澄清这一点: http://docs.trigger.io/en/v1.4/getting-started.html#getting-started-with-the-command-line-tools

不再需要留意“(锻造环境)”。如果您将 forge 可执行文件的路径添加到您的 PATH 中,那么您将能够按照您尝试过的方式运行命令。