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 :: react native layout animation android 
Javascript :: print js example 
Javascript :: how to select all div with data attribute 
Javascript :: js pop matched value in array 
Javascript :: make input bigger if text does not fit 
Javascript :: Add Text Inside Of React Component 
Javascript :: react particles js 
Javascript :: angular singleton service example 
Javascript :: ion change ionic angular 
Javascript :: regular expression for beginners javascript 
Javascript :: react multiple select dropdown 
Javascript :: js class 
Javascript :: how to print 1 to 10 table in javascript 
Javascript :: create div with js 
Javascript :: how to manually trigger browser back button from angular 
Javascript :: javascript split a string 
Javascript :: math module js 
Javascript :: Does my number look big in this? js 
Javascript :: using plice to remove an element from an array in react 
Javascript :: lodash sum 
Javascript :: react select options 
Javascript :: string properties in javascript 
Javascript :: Animated Sticky Header 
Javascript :: remove whitspace in js 
Javascript :: visual studio node.js mac 
Javascript :: javascript addeventlistener click only works once 
Javascript :: Discord.client on 
Javascript :: if without else javascript 
Javascript :: react split 
Javascript :: multilone input react 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =