A
A
Andrules2022-04-21 17:28:30
Command line
Andrules, 2022-04-21 17:28:30

Why does the npm -v command in VScode terminal give an error?

When running in CMD, the version shows, but with some blot on CALL:
626168483d409747846316.png
Doing the same in VScode gives some errors:
6261693c85af4470573185.png

Because of this, I can not create an environment for the React project. The second day I try to find answers, but they are not anywhere. The fact that I run to find out the version through -v, and not --version does not affect the result in any way.
There is a guess that the problem is that bat / cmd files are not launched on behalf of the user. But I can't find an adequate answer to this problem either.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Makarov, 2022-04-22
@kirbi1996

First, try to demolish the node and install it again
Then create a folder with an English name on the desktop and create a new project in it using
create-react-app
, see if it works
If everything works, then demolish node_modules
And install it via npm I
And as an additional option I can still I advise you to install yarn with it more conveniently
npm i -g yarn
then the commands for the project will be
To install yarn packages
To run yarn start

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question