Error when running famous dev on famo.us

205 views Asked by At

I am installing famo.us, and I created a project, then went into the folder and ran famous dev like it says here, but then I get an error:

http://famous.org/get-started.html

C:\Users\Me\Desktop\Apps\Messenger>famous create messenger
Seed project created at: C:\Users\Me\Desktop\Apps\Messenger\messenger

C:\Users\Me\Desktop\Apps\Messenger>cd messenger

C:\Users\Me\Desktop\Apps\Messenger\messenger>famous dev
Node Modules not yet installed, attempting to do so now.
events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: spawn npm ENOENT
    at exports._errnoException (util.js:746:11)
    at Process.ChildProcess._handle.onexit (child_process.js:1053:32)
    at child_process.js:1144:20
    at process._tickCallback (node.js:355:11)

C:\Users\Me\Desktop\Apps\Messenger\messenger>
2

There are 2 answers

1
yairhaimo On

It's a known issue in windows.

First run npm install from the command prompt.
Then, in package.json change the "dev" line under "scripts" to:
"dev": "npm run watch | serve public/ -p 1618",

and then run npm run dev from the command line (instead of famous dev)

0
talves On

The error when running famous dev has been resolved as of Famous-cli version 0.2.8

Run this command at the command line with npm enabled

npm update -g famous-cli

Note: There is an issue with parallel commands in windows using npm so you will not get a watched server when running famous dev from the default famous create seed as of version 0.2.8