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
Hey there, as a preface, I appreciate everything you guys do to maintain npm and all of its workspaces.
I am trying to programmatically install modules into a project without using exec calls or the deprecated npm programmatic interface. Arborist is the perfect package for this endeavor. However, I am finding it difficult to understand how exactly I can use arborist to mimic an npm install exactly? Do I have to do more than this?
Then what is the point of loading the actual tree? I guess my question still stands, how do these different trees interact with each other and where does that occur?
Not quite - I think if you loadActual and then reify, it will do what npm install does with an existing node_modules. If you buildIdeal and reify, it will do what a fresh no-lockfile npm install would do.
Hey there, as a preface, I appreciate everything you guys do to maintain npm and all of its workspaces.
I am trying to programmatically install modules into a project without using exec calls or the deprecated npm programmatic interface. Arborist is the perfect package for this endeavor. However, I am finding it difficult to understand how exactly I can use arborist to mimic an
npm install
exactly? Do I have to do more than this?That example omits error handling.
I guess I am more so confused on how the virtual and actual trees change with changes to a package.json file, and how Arborist handles that.
Thanks in advance.
The text was updated successfully, but these errors were encountered: