help regarding the issue below would be really appreciated :

Command 'Q#: Create new project...' resulted in an error (Running the contributed command: 'quantum.newProject' failed.)

I was trying to follow this exercice : https://learn.microsoft.com/fr-fr/learn/modules/qsharp-create-first-quantum-development-kit/2-install-quantum-development-kit-code

after downloading and running the latest versions of .NET CORE, VSCODE, I can run "Q# Install command line project templates" but can't run "Q# Create a new project : See screenshot1 screenshot 2 CODE SOURCE ERROR I already done this exercice in May last year but for some reasons I get stuck at the very beginning of the process now.

Could it be a version issue ? I remember that the tutorial was different (May 2020) than the one above I shared to you. Unfortunately I can't find the previous tutorial as it has been updated since.

I tried to uninstall the latest versions to reinstall the versions I downloaded in May : useless, I get the same issue.

Many thanks for you help !

2

There are 2 best solutions below

4
On BEST ANSWER

I decided to go with an older version v0.14.2011120240

It seems the new version isn't stable yet.

0
On

Install NodeJS: https://nodejs.org/dist/v14.15.4/node-v14.15.4-x64.msi

Then restart VS Code.

"The below steps currently has a dependency to install node.js including npm. We are working on removing that dependency. Alternatively, use our the command line templates to create a Q# project , or use Visual Studio."

https://learn.microsoft.com/de-de/azure/quantum/install-command-line-qdk?tabs=tabid-vscode