Closed marcelzwiers closed 1 month ago
Oops, I misread my node.js version
I must say that I did not carefully consider the node version, and just used the one that I had installed in the past.
mac036> which node
/Users/roboos/.nvm/versions/node/v18.3.0/bin/node
mac036> node -v
v18.3.0
I think that we need better documented requirements for the compute environment. Idem for MATLAB versions, R versions, etc.
unclear software versioning makes the pipeline execution fragile.
After installing nvm, the latest Node.js version (v22.2.0) and the openneuro cli, I now get this error if I run openneuro login
:
[...]))&&(_h(En),(function(e){"use strict";fh.manage(e,"runMain",(function(t,r,i){var n=I.argv,s=n[1],a=Eu(s,null,!0),o=Yc.from(a),u=fh.find(e,"runMain",dh(o.range));return null===u?Reflect.apply(r,this,i):Reflect.apply(u,this,[t,r,i])})),fh.wrap(e,"runMain",(function(){var e,t=I.argv,r=t[1],i=Eu(r,null,!0),n=Pc.state.package.default,s=ge(i);Yc.get(s)===n&&Yc.set(s,n.clone());try{_c(r,null,!0)}catch(e){throw!n.options.debug&&is(e)?ds(e,{filename:i}):fs(e),e}e=O(I,"_tickCallback"),"function"==typeof e&&Reflect.apply(e,I,[])})),bc.runMain=e.runMain})(En),Nh(I)),ef&&(function(e){"use strict";e.console=xo.console.module.exports,e.process=xo.process.module.exports})(of),tf&&nf&&Ih(Ko)),n.default=Jh})]).default;
TypeError: Function.prototype.apply was called on undefined, which is a undefined and not a function
at $o (/home/mrphys/marzwi/.nvm/versions/node/v22.2.0/lib/node_modules/@openneuro/cli/node_modules/esm/esm.js:1:224377)
at wu (/home/mrphys/marzwi/.nvm/versions/node/v22.2.0/lib/node_modules/@openneuro/cli/node_modules/esm/esm.js:1:227324)
at Eu (/home/mrphys/marzwi/.nvm/versions/node/v22.2.0/lib/node_modules/@openneuro/cli/node_modules/esm/esm.js:1:227999)
at Module.<anonymous> (/home/mrphys/marzwi/.nvm/versions/node/v22.2.0/lib/node_modules/@openneuro/cli/node_modules/esm/esm.js:1:295976)
at n (/home/mrphys/marzwi/.nvm/versions/node/v22.2.0/lib/node_modules/@openneuro/cli/node_modules/esm/esm.js:1:279589)
at Object.<anonymous> (/home/mrphys/marzwi/.nvm/versions/node/v22.2.0/lib/node_modules/@openneuro/cli/src/index.js:5:18)
at Module._compile (node:internal/modules/cjs/loader:1434:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1518:10)
at Module.load (node:internal/modules/cjs/loader:1249:32)
at Module._load (node:internal/modules/cjs/loader:1065:12)
I am on the train and don't have enough bandwidth to install another node version. Could you try with 18.3.0, the version that I have?
That version works, although I get:
-----------------------------------------------------
Your OpenNeuro client is out of date. We strongly recommend you update to the most recent version for an optimal experience.
-----------------------------------------------------
Yes, I also got that confusing "out of date warning" with the latest version. Perhaps something to report on https://github.com/OpenNeuroOrg/openneuro, although they seem to be busy enough as it is.
If I follow the data download instructions for usecase 2.2 I get the following errors: