2012-10-01 91 views
6

我在遵循Trigger.io Forge tutorials,我無法從OSX 10.8的命令行正常工作。從OSX命令行訪問(僞造環境)的問題

使用終端和僞造的教程,我去鍛造,工作區文件夾,並輸入到這個終端:

$HOME/Library/Trigger\ Toolkit/forge create 

,並把它恢復:

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$ 

的教程說:

此時,您應該打開一個命令終端,如下所示:

(forge-environment) 

但是,這並沒有顯示出來。此外,當我查看我的圖書館目錄(並進行全系統搜索)時,我看不到任何標有Trigger的文件夾。

當我試圖按照教程的方向和做的東西一樣使用僞造創建命令,沒有任何反應:

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 

你問之前,是的,我安裝了Python和我能夠構建和運行應用程序使用Forge瀏覽器界面。

任何想法我失蹤?

回答

10

在Mac OS X,以下內容添加到您的bash配置文件

export PATH=$PATH:/Applications/TriggerToolkit.app/Contents/MacOS/ 
+0

爲什麼向下票呢?我已經在多臺機器上運行這個沒有問題 –

+0

jup,偉大的工作 – user1169629

+0

也爲我工作 – Zach