Create-nuxt-app: Weird missing dependency

Created on 9 Jan 2018  路  17Comments  路  Source: nuxt/create-nuxt-app

Hi guys,

I created a project with create-nuxt-app and tried to start with npm run dev but I got error messages:

 ERROR  Failed to compile with 1 errors                                                                    19:52:33

This dependency was not found:

* d:\Work\tmp\nuxt-demo\.nuxt\client.js in multi webpack-hot-middleware/client?name=client&reload=true&timeout=30000&path=/__webpack_hmr ./.nuxt/client.js

To install it, you can run: npm install --save d:\Work\tmp\nuxt-demo\.nuxt\client.js

What is the problem? The mentioned "install ...js" message is not valid, I can't install a JS file with npm install.

Win7, Node 8.9.4

Thanks in advance!

This question is available on Nuxt.js community (#c9)

Most helpful comment

Fix will be included in next release

All 17 comments

the same issue +1

/cc @Atinux

Weird, what are the option you chose?

Fixed by #17

today i have same problem
last macos, node 8.9.3
eslint: yes - gives this error

Fix will be included in next release

Is there a workaround?

@magick93 fixed already.

I found the same issue.
where is the fix.. can anyone write step by step guide, please?

image

@sudhir600
Can you give us more details about your steps and version you are using to reproduce this issue.

Hi @clarkdo,
I follow Nuxt installation process.

  1. downloaded the starter template
  2. Run npm install
  3. and then npm run dev
    after that build process show but then a same error occurred.
    I am pushing the code in a while.

NPM version - 5.6.0 and nuxt 1.4.0

Update - Please check this repo - https://github.com/sudhir600/Nuxt_Vuejs

So it means that you didn't use create-nuxt-app to generate the project, are you using template from https://github.com/nuxt-community/starter-template ?

No, i didn't use create-nuxt-app
yes using template from nuxt site- https://github.com/nuxt-community/starter-template/archive/master.zip

@sudhir600
Your issue is due to lack of dependencies eslint, babel-eslint, eslint-loader and eslint-plugin-vue when using eslint-loader, you can use npm or yarn to install them.

yarn add eslint babel-eslint eslint-loader eslint-plugin-vue

// or

npm i eslint babel-eslint eslint-loader eslint-plugin-vue

I will check the starter-template and I recommend you to use create-nuxt-app to generate the project 馃槃

@sudhir600
Actually starter-template package.json included them, but your project is missing.

ok.. let me install it.

Wow.. its working fine now.
Thanks alot @clarkdo

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stevenho0811 picture stevenho0811  路  10Comments

himanshu64 picture himanshu64  路  6Comments

manniL picture manniL  路  3Comments

benmwendwa picture benmwendwa  路  5Comments

jericopulvera picture jericopulvera  路  4Comments