2017-04-26 52 views
0

enter code here 1CAP-MACOSX:〜Jojie $ npm install -g create-react-app /Users/Jojie /。 npm-packages/bin/create-react-app - > /Users/Jojie/.npm-packages/lib/node_modules/create-react-app/index.js /Users/Jojie/.npm-packages/lib └ ─┬[email protected] ├─┬[email protected] │├──[email protected] │├──[email protected] │├─ ┬[email protected] ││└──[email protected] │├──[email protected] │└──[email protected] ├─┬[email protected] │└──[email protected] ├─┬[email protected] │├─┬[email protected] ││├── [email protected] ││└──[email protected] │└─┬[email protected] │└──[email protected] ├─┬[email protected] │├ ──[email protected] │├──[email protected] │└──[email protected] ├─┬[email protected] │├─┬[email protected] ││└─┬[email protected] ││├─┬[email protected] │││└──[email protected] ││├─┬[email protected] │││├──[email protected]。 0 │││└──[email protected] ││└─┬[email protected] ││├──[email protected] ││└─ ─[email protected] │├─┬[email protected] ││└─┬[email protected] ││├──[email protected] ││└── [email protected] │└─┬[email protected] │├──[email protected] │└──[email protected] ├──[email protected] ├─┬[email protected] │├─┬[email protected] ││└──[email protected] │├─┬[email protected]。 11 ││├──[email protected] ││└─┬[email protected] ││└──[email protected] │├─┬[email protected] ││└ ─┬[email protected] ││└─┬[email protected] ││├──[email protected] ││└──[email protected] │├─ ┬[email protected] ││└──[email protected] │├─┬[email protected] ││├──[email protected] ││├──[email protected] ││├──[email protected] ││├──過程nextick-ARGS @ 1.0.7 ││├──[email protected] ││└──[email protected] │├─┬[email protected] ││└─┬[email protected] ││├──[email protected] ││├──[email protected] ││└──[email protected] │├─┬[email protected] │ │└──[email protected] │└──[email protected] ├─┬[email protected]31 │└──[email protected] └─┬[email protected] └──[email protected]。3-bash:create-react-app:command not found(您的幫助將不勝感激。謝謝。)

1CAP-MACOSX:〜Jojie $ CD桌面/ myProject的/ 1CAP-MACOSX:myProject的Jojie $ CREATE-反應,我的應用程序,應用程序 -bash:創反應-應用:找不到命令 1CAP-MACOSX :myProject Jojie $

+1

提示:使用「代碼」按鈕,以便您的控制檯輸出格式準確。 –

+0

您需要先選擇文本然後按*代碼按鈕。 –

回答

0

與任何全局npm命令一樣,您需要確保全局安裝目錄位於PATH中。根據您的問題的目錄是/Users/Jojie/.npm-packages/bin/。所以一定要把它放在PATH中。如何做到這一點取決於你使用的shell,但this answer可能會有所幫助。

相關問題