Static GitHub Issues

[253] Webpack never ends on npm run dev

prev: Feature Request. Internal css and _nuxt/style.css defer loading
next: Cannot find 'flavicon.ico' in '/some/emebedded/route/'

Hello, Im having an issue trying to start nuxt, when running "$ npm run dev" it freezes on webpack built I try first with the nuxt/starter template but got same problem starting a project from scratch.

What I did: (I follow this instructions: https://nuxtjs.org/guide/installation/#starting-from-scratch)

1) $ mkdir <project-name> 2) $ cd <project-name> 3) creates package.json:

{
  "name": "my-app",
  "scripts": {
    "dev": "nuxt"
  }
}

4) $ npm install --save nuxt 5) mkdir pages 6) creates pages/index.vue 7) $ npm run dev

> my-app@ dev /home/smarbos/camba/devel/testNuxt
> nuxt

  nuxt:build App root: /home/smarbos/camba/devel/testNuxt +0ms
  nuxt:build Generating .nuxt/ files... +2ms
Ready on http://localhost:3000
  nuxt:build Generating routes... +24ms
  nuxt:build Generating files... +6ms
  nuxt:build Adding webpack middleware... +19ms
Build completed in 3.883s

webpack built be9e21f47895944f3a1c in 3889ms
webpack building...

Build completed in 0.287s

webpack built be9e21f47895944f3a1c in 289ms
webpack building...

Build completed in 0.271s

webpack built be9e21f47895944f3a1c in 271ms
webpack building...

Build completed in 0.238s

webpack built be9e21f47895944f3a1c in 238ms
webpack building...

Build completed in 0.242s

webpack built be9e21f47895944f3a1c in 243ms
webpack building...

Build completed in 0.218s

webpack built be9e21f47895944f3a1c in 220ms
webpack building...

Build completed in 0.223s

webpack built be9e21f47895944f3a1c in 223ms
webpack building...

Build completed in 0.203s

webpack built be9e21f47895944f3a1c in 204ms
webpack building...

Build completed in 0.203s

webpack built be9e21f47895944f3a1c in 203ms
webpack building...

Build completed in 0.229s

webpack built be9e21f47895944f3a1c in 230ms
webpack building...

Build completed in 0.213s

webpack built be9e21f47895944f3a1c in 214ms
webpack building...

Build completed in 0.227s

webpack built be9e21f47895944f3a1c in 229ms
webpack building...

Build completed in 0.209s

webpack built be9e21f47895944f3a1c in 210ms
webpack building...

Build completed in 0.213s

webpack built be9e21f47895944f3a1c in 214ms
webpack building...

Build completed in 0.171s

webpack built be9e21f47895944f3a1c in 171ms

With the nuxt/starter I can run $ npm run build:

> textnuxt@1.0.0 build /home/smarbos/camba/devel/textnuxt
> nuxt build

[nuxt] Building...
  nuxt:build App root: /home/smarbos/camba/devel/textnuxt +0ms
  nuxt:build Generating .nuxt/ files... +2ms
  nuxt:build Generating routes... +8ms
  nuxt:build Generating files... +10ms
  nuxt:build Building files... +15ms
Build completed in 6.719s

[nuxt:build:client]
 Hash: d97aef3e418740f8ac4c
Version: webpack 2.2.1
Time: 6724ms
               Asset       Size  Chunks             Chunk Names
img/logo.ddcb767.png    6.54 kB          [emitted]  
    0.nuxt.bundle.js  846 bytes       0  [emitted]  
    1.nuxt.bundle.js  872 bytes       1  [emitted]  
    2.nuxt.bundle.js  548 bytes       2  [emitted]  
      nuxt.bundle.js    40.1 kB       3  [emitted]  app
    vendor.bundle.js    83.5 kB       4  [emitted]  vendor
           style.css    1.31 kB       3  [emitted]  app
       style.css.map   86 bytes       3  [emitted]  app
[nuxt:build:server]
 Hash: b4b0778437cb745f08de
Version: webpack 2.2.1
Time: 6701ms
               Asset     Size  Chunks             Chunk Names
img/logo.ddcb767.png  6.54 kB          [emitted]  
    server-bundle.js   125 kB       0  [emitted]  main
[nuxt] Building done

and run the server with $ npm run start with no problem.

The problem seems to be only present with ./node_modules/.bin/nuxt dev.

My environment:

NODE: v6.9.5
NPM: v3.10.10
Linux Mint 18 Sarah
Ubuntu 16.04 LTS (Xenial Xerus)

Also tested with Node v7.5.0 and NPM v3.5.2

<!--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/c218">#c218</a>)</em></sub></div>