asdf-vm / asdf-vm/asdf-nodejs

npm warns about `--global` deprecation

Open
#305 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Shell
Stars
989
Forks
162
PR merge metrics
No merged PRs in 30d

Description

When this plugin is installing packages from `.default-npm-packages`, it uses the `-g` flag. However, in new versions of npm, this gives a deprecation warning:
```
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
```
Looking at the source of this plugin, this should be an easy fix - I'm more worried about whether swapping flags here would be a breaking change for older npm versions?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.