Is it possible to halt npm install before running any install scripts?

26 views
Skip to first unread message

Paul Johnston

unread,
Oct 12, 2016, 10:38:33 PM10/12/16
to nodejs
I'd like to be able to invoke 'npm install foo bar baz', and 

- have npm setup the node_modules folder with all the necessary artifacts (downloaded), 
- *not* proceed to call install scripts for those modules right away.
- (At this point, I'd like to be able to examine and content-digest everything, and take a summary sha256), then
- continue (or restart) with npm the install scripts.

Is this possible?

Ryan Graham

unread,
Oct 13, 2016, 8:33:49 AM10/13/16
to nod...@googlegroups.com

You could do `npm install --ignore-scripts`, run your checks, and then do `npm rebuild`. That should do what you want.

These commands are also useful for bundled dependency workflows, by the way.

~Ryan


--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/67c59eb6-d822-47da-b8f3-ba18318d801c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

~Ryan

Paul Johnston

unread,
Oct 13, 2016, 10:10:23 AM10/13/16
to nodejs
Thanks Ryan, that looks good.
Reply all
Reply to author
Forward
0 new messages