A
A
alex4answ2021-03-14 10:31:41
Windows
alex4answ, 2021-03-14 10:31:41

Why doesn't npm add variables to path win10?

Good afternoon, I took a new computer, I'm setting up the usual environment, and so on.

Previously, for example, CRA, express, webpack, typescript, etc. npm (npx) packages could be installed globally, then the executable files in them were added to the path and you could use them easily and simply, now for some reason it does not add ...

npm i -g typescript- ok .
tsc --init- error.

tsc is not an internal or external command to an executable program or batch file


and this is actually with any thing, you can of course use these packages like this:
npx tsc --init, but it seems to me that I configured something wrong ..

Tell me, mb I have some minimal user rights or something else, why npm stopped adding packages in path?

Windows 10

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question