Static GitHub Issues

[473] Problems with dev dependencies when deploying to Azure Web App

prev: 0.10.5 babel preset es2015 not installed
next: Files not from root

I'm just trialing out nuxt.js and i'm trying out deployment to an Azure Web App.

I'm experiencing issues when running npm run build requiring the dev dependencies (es-lint, etc) when building.

This happens even though the NODE_ENV environment variable is set to production and even if I run the command with a NODE_ENV prefix

set NODE_ENV=production&& npm run build

I can get it to build if I install the dev dependencies first.

I'm using node@6.9.5 and npm@3.10.10

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c412">#c412</a>)</em></sub></div>