[BUG] npm_package_from not set in lifecycle
Open
@isaacs is already working on this.
Since Apr 16, 2021.
Bug
Release 7.x
- Dominant language
- JavaScript
- Stars
- 10.1k
- Forks
- 4.7k
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 19
Description
the rfc that got rid of most of the environment variables states there will be an npm_package_from variable in when a package is being installed. there isn't. npm_package_resolved, and npm_package_integrity are there.
npm_package_from is not.
current behaviour
npm_package_from not set in install lifecycle hook
expected behaviour
npm_package_from would be set in install lifecycle hook
steps
npm install @chee/yeet 2>&1 | grep npm_package- look at the output, and note there is no
npm_package_from
theinstallscript of that package isenv && false
Environment:
- os: arch linux version 200 and something
- node: 15.10.0
- npm: 7.6.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.