Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefer local npm cache when deploying? #79

Open
brianloveswords opened this issue Jan 26, 2016 · 2 comments
Open

Prefer local npm cache when deploying? #79

brianloveswords opened this issue Jan 26, 2016 · 2 comments

Comments

@brianloveswords
Copy link

See: https://addyosmani.com/blog/using-npm-offline/

@tkellen
Copy link

tkellen commented Jan 26, 2016

This is more complexity than I personally want to add to our boilerplate. I'd be curious to see what it looks like if you want to whip up a PR though!

@cowboy
Copy link
Contributor

cowboy commented Jan 26, 2016

If you could point npm to a local directory instead of needing a separate server process, I'd be SO down.

FWIW, I experimented with this bash script, and while I saw local-npm serving modules, it didn't seem to be any faster. Maybe I was doing something wrong.

#!/usr/bin/env bash

local-npm --directory /tmp/local-npm &
pid=$!
npm set progress false
npm set registry http://127.0.0.1:5080
npm install
npm set registry https://registry.npmjs.org
kill $pid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants