Q2studio install error at npm install

Been attempting to install q2studio, when I get to the last portion installing npm I get the following output, not sure what I'm missing, any help would be amazing!

(qiime2) Voltron:~/miniconda3/envs/q2studio-2022.2.0$ npm install --legacy-peer-deps && npm run build
/usr/lib/node_modules/npm/lib/cli.js:2
module.exports = async process => {
^^^^^^^

SyntaxError: Unexpected identifier
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/usr/lib/node_modules/npm/bin/npm-cli.js:2:1)

Hi @R.Agans,

Welcome to the :qiime2: forum!

I tested out the installation on my end within a conda environment containing the 2022.2 QIIME 2 release, and didn't run into any issues - so there may be something else going on with your installation that's causing this issue.

I'd recommend starting with a fresh install of QIIME 2 (just creating a new conda environment with the QIIME 2 2022.2 release) and try going through the q2studio install instructions once more. Here's what I'd do, step by step:

conda deactivate

This will deactivate your current conda environment. Then follow the install instructions for the latest QIIME 2 release, which you can find here. Make sure your new environment is activated before moving forward with the q2studio install instructions.

Finally, before running the q2studio install instructions, make sure you have Node.js >= 5 installed. If needed, install instructions for Node.js can be found here.

Now that all of the prerequisite dependencies have been installed, you can follow the q2studio install instructions (as you did before), which can be found here for your reference.

With all of that being said, q2studio is not one of our fully developed/supported interfaces in QIIME 2 - we offer minimal support for any bugs or missing functionality. I'd highly recommend checking out q2cli or q2galaxy for a fully developed QIIME 2 interface.

Hope this helps!

Cheers :lizard:

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.