Vscode-vsce: Fail to run 'vsce package' with error

Created on 27 Mar 2018  Â·  12Comments  Â·  Source: microsoft/vscode-vsce

Fail to run 'vsce package' with error ‘vsce’ is not recognized as an internal or external command, operable program or batch file.
2

Most helpful comment

Maybe you can add vsce's path into %PATH%, mine is "C:\Users\culyee\AppData\Roaming\npm". It works for me.

All 12 comments

This is an issue with your npm system setup. Try restarting your machine.

Thanks a lot. But this issue still reproduces after restarting my machine. Could you help to provide more details or other solutions?

How did you install Node/NPM?

I install Node from https://nodejs.org/en/download.
This issue doesn't reproduce on another clean machine.
Special thanks for your help.

What is the value of your %PATH% variable in the command prompt?

Display 'C:\Windows\System32' is not recognized as an internal or external command, operable program or batch file on both two machines. Is it right?
Do we need to set the PATH? For Node?

Do echo %PATH%.

Please get the details from the screenshot
both

I don't see the issue. I recommend going to Stack Overflow with the question.

Got this problem, solved by installing vsce globally:
npm install -g vsce

The same problem to me, i don't know how to fix, I try to use npm install -g vsce and don't work

Maybe you can add vsce's path into %PATH%, mine is "C:\Users\culyee\AppData\Roaming\npm". It works for me.

Was this page helpful?
0 / 5 - 0 ratings