npm/config

[BUG] Environment variable DESTDIR is not honored if PREFIX is set via environment

0mp opened this issue · 0 comments

0mp commented

What / Why

Environment variable DESTDIR is not honored if PREFIX is set via environment.

When

Whenever I run npm get prefix.

Where

  • n/a

How

Current Behavior

env DESTDIR=/tmp PREFIX="/opt" npm get prefix
/opt

Steps to Reproduce

  • Set DESTDIR and PREFIX environment variables and run npm get prefix.

Expected Behavior

env DESTDIR=/tmp PREFIX="/opt" npm get prefix
/tmp/opt

Who

  • n/a

References

  • n/a