Ask Your Question
3

What is the suggested replacement for the deprecated `--global` and `--local` options in the `npm WARN config global` message?

asked 2022-10-28 11:00:00 +0000

pufferfish gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-09-28 10:00:00 +0000

devzero gravatar image

The suggested replacement for the deprecated --global and --local options in the npm WARN config global message is to use the --global-style and --save options instead.

--global-style installs packages into the node_modules directory of the global npm installation, making them accessible from anywhere.

--save saves the package as a dependency in the package.json file, allowing you to easily manage and reproduce your project's dependencies.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-10-28 11:00:00 +0000

Seen: 13 times

Last updated: Sep 28 '22