I installed Visual Studio Code and included JavaScript and PHP cause I had a training course in it.
Now I need Playwright/Cucumber for my job.
There seem to be two ways of installing it, either adding the extension from the list or using npm i, npm playwright install in the VS Terminal.
npm didn’t work, so I also installed node.js and apparently it is there when I find out the version using Windows prompt.
I installed the Playwright extension the way it was described on the website.
https://playwright.dev/docs/getting-started-vscode
But npm still cannot be found.
What is missing and what kind of info do you need?
Thank you.
David
It said it needed to be restarted which I did, how do I find out all my extensions?
I installed it in a folder with data in it already:
.github
.vscode
reports
src
package.json etc…
Playwright Test for VSCode
v1.1.2
Microsoft
microsoft.com
672,906
(28)
Run Playwright Test tests in Visual Studio Code.
Disable
Uninstall
This extension is enabled globally.
npm : Die Benennung “npm” wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern
enthalten), und wiederholen Sie den Vorgang.
In Zeile:1 Zeichen:1
- npm init playwright@latest –yes — –quiet –browser=chromium –brow …
-
+ CategoryInfo : ObjectNotFound: (npm:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
node –version
v20.13.1
npm –version
10.8.0