Code Monkey home page Code Monkey logo

famous-cli's Introduction

famous-cli's People

Contributors

gabz75 avatar lorinbeer avatar maribezler avatar mylesborins avatar wgester avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

famous-cli's Issues

Running `famouse create` fails with ETIMEDOUT

I've installed famous-cli and trying to create a project. It fails. I'm behind a http proxy. But npm works fine.
I tried to set http_proxy environment variable with no luck.

C:\>npm install -g famous-cli
C:\>famous -v
0.5.2

C:\>famous create test
events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: connect ETIMEDOUT
    at exports._errnoException (util.js:746:11)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1010:19)

Live browser reloads?

After famous create testproject cd/testproject and famous dev the famous seed project loads as expected but no changes in src/index.js are live reloaded to the browser. In fact they are not reloaded after reloading the browser page. I can comment out the whole file without changes picked up.

The changes are only picked up once I shut down the server and restart with famous dev.

Am I missing something obvious here? I'm on OS X Yosemite and Chrome (also checked Firefox). No errors in the console.

$ deploy deploy.js:49

$ npm install -g famous-cli
$ famous login
$ famous create myProject
$ cd myProject
$ famous deploy

/usr/local/lib/node_modules/famous-cli/lib/deploy.js:49
results.scripts = config.scripts;
^
TypeError: Cannot set property 'scripts' of undefined
at /usr/local/lib/node_modules/famous-cli/lib/deploy.js:49:33
at /usr/local/lib/node_modules/famous-cli/lib/project/link.js:14:13
at /usr/local/lib/node_modules/famous-cli/res/sdk-bundle.js:5:9803
at /usr/local/lib/node_modules/famous-cli/res/sdk-bundle.js:5:4719
at IncomingMessage. (/usr/local/lib/node_modules/famous-cli/res/sdk-bundle.js:5:4249)
at IncomingMessage.EventEmitter.emit (events.js:117:20)
at _stream_readable.js:919:16
at process._tickCallback (node.js:419:13)

$

Error when running "famous dev"

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

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

but then I get an error:

Does anyone know how to fix this? (I'm on windows 7 64-bit)
Thanks

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>

issues with "famous develop"

bash-3.2# famous develop

[email protected] dev /Users/ahnbernard/famous
node ./bin/dev.js

events.js:85
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE
at exports._errnoException (util.js:746:11)
at Server._listen2 (net.js:1156:14)
at listen (net.js:1182:10)
at Server.listen (net.js:1267:5)
at Object. (/Users/ahnbernard/famous/bin/dev.js:58:8)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)

npm ERR! Darwin 13.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "run" "dev"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] dev: node ./bin/dev.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script 'node ./bin/dev.js'.
npm ERR! This is most likely a problem with the engine-seed package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./bin/dev.js
npm ERR! You can get their info via:
npm ERR! npm owner ls engine-seed
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/ahnbernard/famous/npm-debug.log
child process exited with code 1
bash-3.2#

//////////// npm-debug.log/////////

0 info it worked if it ends with ok
1 verbose cli [ 'node', '/usr/local/bin/npm', 'run', 'dev' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'predev', 'dev', 'postdev' ]
5 info predev [email protected]
6 info dev [email protected]
7 verbose unsafe-perm in lifecycle true
8 info [email protected] Failed to exec dev script
9 verbose stack Error: [email protected] dev: node ./bin/dev.js
9 verbose stack Exit status 1
9 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:213:16)
9 verbose stack at EventEmitter.emit (events.js:110:17)
9 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
9 verbose stack at ChildProcess.emit (events.js:110:17)
9 verbose stack at maybeClose (child_process.js:1015:16)
9 verbose stack at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
10 verbose pkgid [email protected]
11 verbose cwd /Users/ahnbernard/famous
12 error Darwin 13.4.0
13 error argv "node" "/usr/local/bin/npm" "run" "dev"
14 error node v0.12.7
15 error npm v2.11.3
16 error code ELIFECYCLE
17 error [email protected] dev: node ./bin/dev.js
17 error Exit status 1
18 error Failed at the [email protected] dev script 'node ./bin/dev.js'.
18 error This is most likely a problem with the engine-seed package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error node ./bin/dev.js
18 error You can get their info via:
18 error npm owner ls engine-seed
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]

`famous project deploy` should error when not authenticated

Running deploy when not logged in does not throw an error or print any message, so I didn't know that I was supposed to run famous register beforehand.

npm install -g famous-cli
famous init my-first-project
cd my-first-project
famous project deploy

Node.js v0.12.1
OSX 10.10.3

famous dev Broken on Windows

$ npm install -g famous-cli
$ famous init
$ famous dev

Navigate to: http://localhost:1618

**This web page is not available**
ERR_CONNECTION_REFUSED

There are otherwise no errors/exceptions/warnings in the shell or from the window console.

CLI tool does not seem to watch nested components

It appears that when I create new components the app is not watching them for changes and wont load the changes made to the files in the modules.

How to reproduce

  • create demo app
  • create new folder with .famous directory and myNameSpace.js file
  • include myNameSpace component in main app i.e.
FamousFramework.scene('thedude:magick', {
    behaviors: {
        '#surface': {
            'content': '<h1>Hello world!</h1>',
            'size': [800, 800]
        }
    },

    tree: `<node>
    <node id="surface"></node>
    <thedude:google:simple-map></thedude:google:simple-map> //my custom namespace 
    </node>`
});

  • now modify the file in custom namespace and note that the changes are not being compiled and rendered on page reload.

issue

Installation Errors

famous-error-2

Trying to install famous on my pc and got this error, but when i tried to install on another pc, the installation when fine. Sorry but what should i do?
And this is the debug log:
https://gist.github.com/mkamaalr/1e37515d774bd7991a89

npm version : 2.5.1
*tested with the latest version, but the error still same
*tried the 'npm cache clean' but the result still same

famous dev Should Execute Separate Task Runner

famous dev should execute a separate task runner (ie Grunt / Gulp) to execute the build and perform any livereload. The current implementation forces everyone to move away from famous-cli when they desire more advanced build steps like sass/less or integration with Cordova.

Should famous create also npm install?

I would argue that famous create should also install the dependencies.

Running one command and being able to run the project is a better user experience that having to create, install, run.

Thoughts?

famous create [name-of-project]

@whatisor 's question migrated from engine repo

Hello,
I am behind a proxy.
I can install famous cli, but when I run to create project. It shows error:
events.js:85
throw er; // Unhandled 'error' event
^
Error: getaddrinfo ENOTFOUND code.famo.us
at errnoException (dns.js:44:10)
at GetAddrInfoReqWrap.onlookup as oncomplete

Nodejs and npm can works nomally in other project.
Please help to solve it.
Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.