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

26 weergaven
Naar het eerste ongelezen bericht

Paul Johnston

ongelezen,
12 okt 2016, 22:38:3312-10-2016
aan 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

ongelezen,
13 okt 2016, 08:33:4913-10-2016
aan 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

ongelezen,
13 okt 2016, 10:10:2313-10-2016
aan nodejs
Thanks Ryan, that looks good.
Allen beantwoorden
Auteur beantwoorden
Doorsturen
0 nieuwe berichten