Hi everyone,
I am reviving my setup to work again on my bug[1] and I am encountering
issues with npm/node as I try to run the gaia integration tests.
Attached is the error I am getting when I run 'make test-integration'.
It seems to me this is caused by the npm/node version so I am following
that route (but I may be wrong).
The doc page[2] says to use node 0.12.x and npm 2.0. This differs from
what I have on Fedora 22:
$ node --version
v0.10.36
$ npm --version
1.3.6
The official node.js site has 4.x as the master release so I guess I
cannot use that. The nodesource variants do not have Fedora22 listed as
supported[3] (confirmed by the nodesource bash setup script).
Is that doc bit about the node/npm version still accurate or can I use
other versions? If so, do you have an advice on getting the right
version for my distro?
Thanks for your help!
Vincent
[1] https://bugzilla.mozilla.org/show_bug.cgi?id=981562
[2]
https://developer.mozilla.org/en-US/Firefox_OS/Automated_testing/Gaia_integration_tests#Setup
[3]
https://github.com/nodejs/node-v0.x-archive/wiki/Installing-Node.js-via-package-manager#enterprise-linux-and-fedora
[OK] rjs optimize
[app] building music-oga app...
r.js optimize ok
[PREPROCESSOR] remove file:
/home/vincent/Documents/Dev/Mozilla/gaia-2014-11-28/build_stage/settings/elements/firefox_sync.html
[PREPROCESSOR] remove file:
/home/vincent/Documents/Dev/Mozilla/gaia-2014-11-28/build_stage/settings/js/panels/firefox_sync/firefox_sync.js
[PREPROCESSOR] remove file:
/home/vincent/Documents/Dev/Mozilla/gaia-2014-11-28/build_stage/settings/js/panels/firefox_sync/panel.js
[PREPROCESSOR] remove file:
/home/vincent/Documents/Dev/Mozilla/gaia-2014-11-28/build_stage/settings/js/modules/sync_manager_bridge.js
[PREPROCESSOR] remove file:
/home/vincent/Documents/Dev/Mozilla/gaia-2014-11-28/build_stage/settings/style/images/fxsync_error.png
[PREPROCESSOR] remove file:
/home/vincent/Documents/Dev/Mozilla/gaia-2014-11-28/build_stage/settings/style/images/fxsync_intro.png
[PREPROCESSOR] remove file:
/home/vincent/Documents/Dev/Mozilla/gaia-2014-11-28/build_stage/settings/test/unit/panels/firefox_sync/manager_bridge_test.js
[PREPROCESSOR] remove file:
/home/vincent/Documents/Dev/Mozilla/gaia-2014-11-28/build_stage/settings/test/unit/panels/firefox_sync/panel_test.js
Finished: test ui config file: ./dev_apps/test-agent/config.json
Finished: Generating extensions
Profile Ready: please run [b2g|firefox] -profile
/home/vincent/Documents/Dev/Mozilla/gaia-2014-11-28/profile-test
# TODO: Get rid of references to gaia-node-modules stuff.
/usr/bin/npm install
npm ERR! Error: No compatible version found:
marionette-content-script@'file:./tests/jsmarionette/plugins/marionette-content-script'
npm ERR! Valid install targets:
npm ERR! ["0.0.0","0.0.1","0.0.2","0.0.3","0.0.4"]
npm ERR! at installTargetsError
(/usr/lib/node_modules/npm/lib/cache.js:719:10)
npm ERR! at /usr/lib/node_modules/npm/lib/cache.js:638:10
npm ERR! at saved
(/usr/lib/node_modules/npm-registry-client/lib/get.js:148:7)
npm ERR! at /usr/lib/node_modules/graceful-fs/polyfills.js:133:7
npm ERR! at Object.oncomplete (fs.js:108:15)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <[email protected]>
npm ERR! System Linux 4.1.10-200.fc22.x86_64
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /home/vincent/Documents/Dev/Mozilla/gaia-2014-11-28
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.3.6
npm ERR! TypeError: Object.keys called on non-object
npm ERR! at Function.keys (native)
npm ERR! at installTargetsError
(/usr/lib/node_modules/npm/lib/cache.js:708:24)
npm ERR! at /usr/lib/node_modules/npm/lib/cache.js:638:10
npm ERR! at saved
(/usr/lib/node_modules/npm-registry-client/lib/get.js:148:7)
npm ERR! at /usr/lib/node_modules/graceful-fs/polyfills.js:133:7
npm ERR! at Object.oncomplete (fs.js:108:15)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <[email protected]>
npm ERR! System Linux 4.1.10-200.fc22.x86_64
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /home/vincent/Documents/Dev/Mozilla/gaia-2014-11-28
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.3.6
npm ERR! type called_on_non_object
npm ERR! TypeError: Object.keys called on non-object
npm ERR! at Function.keys (native)
npm ERR! at installTargetsError
(/usr/lib/node_modules/npm/lib/cache.js:708:24)
npm ERR! at /usr/lib/node_modules/npm/lib/cache.js:638:10
npm ERR! at saved
(/usr/lib/node_modules/npm-registry-client/lib/get.js:148:7)
npm ERR! at /usr/lib/node_modules/graceful-fs/polyfills.js:133:7
npm ERR! at Object.oncomplete (fs.js:108:15)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <[email protected]>
npm ERR! System Linux 4.1.10-200.fc22.x86_64
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /home/vincent/Documents/Dev/Mozilla/gaia-2014-11-28
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.3.6
npm ERR! type called_on_non_object
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/vincent/Documents/Dev/Mozilla/gaia-2014-11-28/npm-debug.log
npm ERR! not ok code 0
Makefile:789: recipe for target 'node_modules' failed
make: *** [node_modules] Error 1
_______________________________________________
dev-fxos mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-fxos