The npm community forum has been discontinued.
To discuss usage of npm, visit the GitHub Support Community.
Use package.json in root/parent folder
I remember reading somewhere (an issue on the repo? here in the forum? ) that npm has some logic to retrieve and use the
package.json in the topmost directory (if I run the installation from a sub-directory).
So, if I recall correctly, having something like
www/ |- vendor/ | |- node_modules/ | | |- libFoo/ | | |_package.json | |_package.json |_package.json
will use the
package.json in the www directory for the
Where can I find the documentation of this behaviour?
I found this information here, under the second paragraph of the More Information header.