Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

npm warn config global --global --local are deprecated

## The solution I followed to solve this problem:

1. Go to folder C:Program Files
odejs
2. You have to edit four files named npm, npm.cmd, npx, npx.cmd
3. Open the files in a text editor, like Visual Studio Code
4. Replace prefix -g with prefix --location=global in all four files
5. Save all (if asked, save as administrator)
6. Good to go!

ref: https://stackoverflow.com/a/72545277
Comment

npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

/*
  https://youtu.be/ySh16mC7Zws?t=51
#BUG: npm WARN config global `--global`, `--local` are deprecated. 
  Use `--location=global` instead.

Windows: Change param -g on File npm.cmd and npx.cmd on path of nodejs
on -g to --location=global

Default path of nodejs on windows C:Program Files
odejs
*/
Comment

PREVIOUS NEXT
Code Example
Javascript :: iterate key value object javascript 
Javascript :: javascript check for undefined 
Javascript :: jquery submit form ajax 
Javascript :: swal is not defined 
Javascript :: scroll jquery to anchor 
Javascript :: nest js install and create project 
Javascript :: vue pdf vue jest 
Javascript :: get current formatted time in javascript 
Javascript :: ejs if else 
Javascript :: javascript gcd 
Javascript :: javascript confirm yes no 
Javascript :: use json file for data jquery 
Javascript :: js replace single quote with doubel quote 
Javascript :: get children length jquery 
Javascript :: trigger change 
Javascript :: js show span for 5 seconds 
Javascript :: jquery when you typing in input 
Javascript :: javascript regex french phone number 
Javascript :: java.lang.outofmemoryerror (no error message) react native 
Javascript :: play sound javascript 
Javascript :: express js clear cookie 
Javascript :: jquery stoppropagation 
Javascript :: await async sleep 
Javascript :: regex special characters javascript 
Javascript :: jquery select on select 
Javascript :: js wait sleep 
Javascript :: eslint change max line length 
Javascript :: refresh page in next js 
Javascript :: logout in react js 
Javascript :: domain regex 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =