-1

i'm working on NPM terminal in VSCode as git and i installed an extension to support NPM but didn’t work and i just got that error

'npm' is not recognized as an internal or external command,operable program or batch file.

EDIT

i already installed node.js , i just want to work in the regular command prompt rather than node.js cmd and i got errors but it worked well when i open cmd as an admin after adding 'C:\Program Files\nodejs' to the path. now how i work with npm in cmd without opening it as an admin ? i think it’s a permissions issue tho.

Apdo Elsaed
  • 109
  • 2
  • 7
  • 1
    Install Node.js from (https://nodejs.org) – Alex Baban Jul 26 '18 at 23:29
  • [Node.js tutorial in VS Code](https://code.visualstudio.com/docs/nodejs/nodejs-tutorial) – Gino Mempin Jul 26 '18 at 23:52
  • i’m already added it, i used to work in the node.js command prompt but i want to work in regular cmd and i face a problem. i think it is about permissions. – Apdo Elsaed Jul 27 '18 at 00:13
  • Maybe you installed Node before as Administrator, that's why it's requiring the same privileges. You can try to re-installing it on a non-Admin (?) account or check the solutions from [this other post](https://stackoverflow.com/questions/22325031/npm-please-try-using-this-command-again-as-root-administrator). – Gino Mempin Jul 27 '18 at 09:01

2 Answers2

0

What version do you have? It sounds like node is not installed.

Try to run npm -v to identify the version?

nPcomp
  • 8,637
  • 2
  • 54
  • 49
0

You can run npm commands in a VSCode terminal the same way you would run them in any terminal: npm <command>

This is assuming npm is properly installed.

Regarding the error you reported, maybe check this out: 'npm' is not recognized as internal or external command, operable program or batch file

codeSchmode
  • 11
  • 1
  • 2