4 ms·
Try installing non-dev dependencies.. That's where a lot of your weight comes from, which is not in production.
by joshmanders 9y ago
Try installing non-dev dependencies.. That's where a lot of your weight comes from, which is not in production.
- segphault 9y agoSo, I just did "npm install next react react-dom" which isn't bringing in next's development dependencies. Is there something that I'm missing?
- joshmanders 9y agonpm install next react react-dom --production
- segphault 9y agoThat gets me the exact same thing. And afaik what you get from --production is the default behavior when you install a package directly from npm.
- joshmanders 9y agoWhat's the contents of your $HOME/.npmrc file? Because it shouldn't be unless you have `production = true` set.