You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just read through the NPM code and stumbled over: find_prefix.js#L46 which basically looks-up the file-system tree to find where the node_modules or package.json folder that should be used as root for the operation.
This looks like this also needs to be done by Node.js in order to identify from where to load the packages.
About that regard I have a few questions / problems:
I wasn't able to find the location of the Node.js logic. Could you point me to it? 😅
What could be a reason for both Node and NPM to implement this logic separately ❓
I just read through the NPM code and stumbled over:
find_prefix.js#L46which basically looks-up the file-system tree to find where thenode_modulesorpackage.jsonfolder that should be used as root for the operation.This looks like this also needs to be done by
Node.jsin order to identify from where to load the packages.About that regard I have a few questions / problems: