Npm install installation package, without adding-g but directly installed to the global, what is the situation?

cd to the directory, then initialize the, npm install package-- save, is installed directly to the global

clipboard.png

 npm init
PS F:\learn-pro\nodeserver> npm install anywhere --sava

C:\Users\Administrator\AppData\Roaming\npm\node_modules\anywhere\bin\anywhere
+ anywhere@1.5.0
added 34 packages in 15.107s


Apr.11,2021

sava ? Isn't it save ?


is very strange. You try not to use powershell, to troubleshoot the configuration of powershell first. After
is excluded, check npm config list . If the global=true indicates the default global installation, just change it to false. npm config set global=false

Menu