npm run dev failing.. problem with build-runtime?
surfjedi opened this issue · 5 comments
after installing the CLI, creating a project and npm install successfully - I am un able to get past the npm run dev command..
Here's what I get :
leeblazek@Lees-MacBook-Pro-2
~/Sites/fa-framework-test
$ npm run dev
famous-framework-jon-doe-hello-world@0.0.0 dev /Users/leeblazek/Sites/fa-framework-test
npm run bundle && node node_modules/famous-framework/dev/dev.js local-only-bootstrap --port=1618 --blocksDirectory=$PWD/public --sourceDirectory=$PWD/componentsfamous-framework-jon-doe-hello-world@0.0.0 bundle /Users/leeblazek/Sites/fa-framework-test
mkdir -p public && cd node_modules/famous-framework && npm run build-runtime -- --outputFile=$PWD/../../public/famous-framework.development.bundle.js && cd ../..
npm ERR! Error: ENOENT, open '/Users/leeblazek/Sites/fa-framework-test/node_modules/famous-framework/node_modules/build-runtime/package.json'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues
npm ERR! System Darwin 14.3.0
npm ERR! command "node" "/usr/local/bin/npm" "run" "build-runtime" "--" "--outputFile=/Users/leeblazek/Sites/fa-framework-test/node_modules/famous-framework/../../public/famous-framework.development.bundle.js"
npm ERR! cwd /Users/leeblazek/Sites/fa-framework-test/node_modules/famous-framework
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! path /Users/leeblazek/Sites/fa-framework-test/node_modules/famous-framework/node_modules/build-runtime/package.json
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/leeblazek/Sites/fa-framework-test/node_modules/famous-framework/npm-debug.log
npm ERR! not ok code 0
npm ERR! famous-framework-jon-doe-hello-world@0.0.0 bundle: mkdir -p public && cd node_modules/famous-framework && npm run build-runtime -- --outputFile=$PWD/../../public/famous-framework.development.bundle.js && cd ../..
npm ERR! Exit status 34
npm ERR!
npm ERR! Failed at the famous-framework-jon-doe-hello-world@0.0.0 bundle script.
npm ERR! This is most likely a problem with the famous-framework-jon-doe-hello-world package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! mkdir -p public && cd node_modules/famous-framework && npm run build-runtime -- --outputFile=$PWD/../../public/famous-framework.development.bundle.js && cd ../..
npm ERR! You can get their info via:
npm ERR! npm owner ls famous-framework-jon-doe-hello-world
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 14.3.0
npm ERR! command "node" "/usr/local/bin/npm" "run" "bundle"
npm ERR! cwd /Users/leeblazek/Sites/fa-framework-test
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/leeblazek/Sites/fa-framework-test/npm-debug.log
npm ERR! not ok code 0
npm ERR! famous-framework-jon-doe-hello-world@0.0.0 dev: npm run bundle && node node_modules/famous-framework/dev/dev.js local-only-bootstrap --port=1618 --blocksDirectory=$PWD/public --sourceDirectory=$PWD/components
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the famous-framework-jon-doe-hello-world@0.0.0 dev script.
npm ERR! This is most likely a problem with the famous-framework-jon-doe-hello-world package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run bundle && node node_modules/famous-framework/dev/dev.js local-only-bootstrap --port=1618 --blocksDirectory=$PWD/public --sourceDirectory=$PWD/components
npm ERR! You can get their info via:
npm ERR! npm owner ls famous-framework-jon-doe-hello-world
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 14.3.0
npm ERR! command "node" "/usr/local/bin/npm" "run" "dev"
npm ERR! cwd /Users/leeblazek/Sites/fa-framework-test
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/leeblazek/Sites/fa-framework-test/npm-debug.log
npm ERR! not ok code 0
leeblazek@Lees-MacBook-Pro-2
~/Sites/fa-framework-test
$
I treid to break apart and run the seperate commands in 'npm run dev', once I get to the npm run build-runtime it fails
tried switching node versions to 0.12.4 still with no luck:
Now using node v0.12.4
leeblazek@Lees-MacBook-Pro-2
~/Sites/fa-framework-test
$ npm run dev
famous-framework-jon-doe-hello-world@0.0.0 dev /Users/leeblazek/Sites/fa-framework-test
npm run bundle && node node_modules/famous-framework/dev/dev.js local-only-bootstrap --port=1618 --blocksDirectory=$PWD/public --sourceDirectory=$PWD/componentsfamous-framework-jon-doe-hello-world@0.0.0 bundle /Users/leeblazek/Sites/fa-framework-test
mkdir -p public && cd node_modules/famous-framework && npm run build-runtime -- --outputFile=$PWD/../../public/famous-framework.development.bundle.js && cd ../..famous-framework@0.10.0 build-runtime /Users/leeblazek/Sites/fa-framework-test/node_modules/famous-framework
node dev/build-runtime.js build-runtime "--outputFile=/Users/leeblazek/Sites/fa-framework-test/node_modules/famous-framework/../../public/famous-framework.development.bundle.js"
/Users/leeblazek/Sites/fa-framework-test/node_modules/famous-framework/node_modules/jsdom/node_modules/contextify/node_modules/bindings/bindings.js:83
throw e
^
Error: Module did not self-register.
at Error (native)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at bindings (/Users/leeblazek/Sites/fa-framework-test/node_modules/famous-framework/node_modules/jsdom/node_modules/contextify/node_modules/bindings/bindings.js:76:44)
at Object. (/Users/leeblazek/Sites/fa-framework-test/node_modules/famous-framework/node_modules/jsdom/node_modules/contextify/lib/contextify.js:1:96)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
npm ERR! Darwin 14.3.0
npm ERR! argv "/Users/leeblazek/.nvm/versions/node/v0.12.4/bin/node" "/Users/leeblazek/.nvm/versions/node/v0.12.4/bin/npm" "run" "dev"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! code ELIFECYCLE
npm ERR! famous-framework-jon-doe-hello-world@0.0.0 dev: npm run bundle && node node_modules/famous-framework/dev/dev.js local-only-bootstrap --port=1618 --blocksDirectory=$PWD/public --sourceDirectory=$PWD/components
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the famous-framework-jon-doe-hello-world@0.0.0 dev script 'npm run bundle && node node_modules/famous-framework/dev/dev.js local-only-bootstrap --port=1618 --blocksDirectory=$PWD/public --sourceDirectory=$PWD/components'.
npm ERR! This is most likely a problem with the famous-framework-jon-doe-hello-world package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run bundle && node node_modules/famous-framework/dev/dev.js local-only-bootstrap --port=1618 --blocksDirectory=$PWD/public --sourceDirectory=$PWD/components
npm ERR! You can get their info via:
npm ERR! npm owner ls famous-framework-jon-doe-hello-world
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/leeblazek/Sites/fa-framework-test/npm-debug.log
Sorted - had delete node_modules directory and then 'npm install' again with node version 0.12.4
Thanks for going through this debugging process, @surfjedi -- I know the install can often be the most frustrating part of a young framework. One of our highest priorities is to cleaning up the npm scripts and install process, and getting to compatibility with recent node.js/io.js versions.
For anyone who finds this issue, the following line in the error message is the telltale sign that node version isn't recent enough:
npm ERR! Error: ENOENT, open '...../node_modules/famous-framework/node_modules/build-runtime/package.json
Sure - no problem. And FYI if it helps in general I made famous alfred workflow to create projects even easier:
http://www.packal.org/workflow/famous
Let me know what you think, made it just a few days ago.