I can’t show the version of an NPM package (nodemon --version), what to do?

155 Views Asked by At

I tried to run codes in my hyper-terminal (deleted nodemon and then reinstalled it) but at the end I still can NOT get the version of my nodemon, it says: "C:\Users\azadk\AppData\Roaming\npm/node_modules/node/bin/node: line 1: This: command not found"

Here’s what I tried to do:

enter image description here

I also tried to set the path of Environment variables to "C:\Program Files\nodejs" but still I can’t get the version.

2

There are 2 best solutions below

0
Ibrahim shamma On

If you are connected to some sort of VPN or your corporate internet, try to connect to another network and run the call again.

0
Azad Jordan On

I entered these commands and the problem was resolved:

npm config rm proxy
npm config rm https-proxy
npm config delete http-proxy
npm config delete https-proxy
set HTTP_PROXY=null
set HTTPS_PROXY=null