jamofbob
-
Posts
5 -
Joined
-
Last visited
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Posts posted by jamofbob
-
-
I have managed to solve the issue by setting PATH variable. Found the Alfred Workflow Debug tool, very useful!!
cd /Users/jameshusband/development PATH=/usr/local/bin npx create-react-app application
-
Sorry I failed to mention in OP that i have already tried pointing directly to the binary, Run Script looks like this:
cd /Users/theuser/development /usr/local/bin/npx create-react-app my-app
-
I am trying to write an Alfred Workflow that creates a new react app. All the commands below are working fine EXCEPT for "npx create-react-app", anyone got this to work before?
Many thanks...
cd /Users/jameshusband/Development mkdir {query} cd {query} npx create-react-app my-app touch index.html
[SOLVED] Running "npx create-react-app' in Run Script
in Workflow Help & Questions
Posted · Edited by jamofbob
Many thanks for helping, life saver with the correct setting of PATH!