Vue-cli: vue create issue: Cannot find module 'debug'

Created on 13 Feb 2018  路  9Comments  路  Source: vuejs/vue-cli

Version

3.0.0-alpha.12

Steps to reproduce

run the following
vue create my-app

What is expected?

It should scaffold the app.

What is actually happening?

module.js:557
    throw err;
    ^

Error: Cannot find module 'debug'
    at Function.Module._resolveFilename (module.js:555:15)
    at Function.Module._load (module.js:482:25)
    at Module.require (module.js:604:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\Users\Goyal\AppData\Roaming\npm\node_modules\@vue\cli\lib\Creator.js:2:15)
    at Module._compile (module.js:660:30)
    at Object.Module._extensions..js (module.js:671:10)
    at Module.load (module.js:573:32)
    at tryModuleLoad (module.js:513:12)
    at Function.Module._load (module.js:505:3)

Most helpful comment

See #831

All 9 comments

Same issue
node -v v8.9.4
npm -v 5.6.0
Returning to v3.0.0-alpha.11 fix issue

Sam here. And there are other bugs too. I am reverting back to v2

same here
node 9.5.0
npm 5.6.0
linux ubuntu x64

See #831

Duplicate of #831

What's the solution? Was it included in the alpha12 release?

@ayush987goyal I think that the fix will be available in the next patch release. As a workaround we could downgrade version to alpha.11 via npm install -g @vue/[email protected]

When can we expect this fix to be published to yarn?

I solved the same problem with npm's version upgrade:
Node Version: 8.11.3
NPM Version: 6.1.0
Vue version: 3.0.0-rc.3

Was this page helpful?
0 / 5 - 0 ratings

Related issues

italomaia picture italomaia  路  88Comments

dimavolo picture dimavolo  路  75Comments

ghenry picture ghenry  路  40Comments

GeertClaes picture GeertClaes  路  31Comments

wuyuweixin picture wuyuweixin  路  35Comments