Skip to content

INIT_CWD does not get reset if npm install is invoked by another npm script #2578

Closed
npm/config
#12
@jsg2021

Description

@jsg2021

@Geod24 The tests are in npm/config@7070885 This is a bug in @npmcli/config, not in the cli itself.

Originally posted by @isaacs in #2033 (comment)

This is maybe more of a question. But I was surprised by the fact INIT_CWD retained the parent process's value when a post-install script installed a child-directory project...

Metadata

Metadata

Assignees

Labels

Bugthing that needs fixingRelease 7.xwork is associated with a specific npm 7 release

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions