question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`vue create app-name` throws an error and exits!

See original GitHub issue

Version

4.5.7

Environment info

Environment Info:

  System:
    OS: Windows 7 6.1.7601
    CPU: (4) x64 Intel(R) Core(TM) i3 CPU       M 380  @ 2.53GHz
  Binaries:
    Node: 12.19.0 - C:\Program Files\nodejs\node.EXE
    Yarn: Not Found
    npm: 6.14.8 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 86.0.4240.75
  npmGlobalPackages:
    @vue/cli: Not Found

Steps to reproduce

  1. Run vue create test-app.
  2. Get the following error:
 ERROR  TypeError: Cannot convert undefined or null to object
TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at Object.exports.getFeatures (C:\Users\AnotherUser.APPLE.000\AppData\Roaming\npm\node_modules\@vue\cli\lib\util\features.js:14:26)
    at exports.formatFeatures (C:\Users\AnotherUser.APPLE.000\AppData\Roaming\npm\node_modules\@vue\cli\lib\util\features.js:23:28)
    at C:\Users\AnotherUser.APPLE.000\AppData\Roaming\npm\node_modules\@vue\cli\lib\Creator.js:429:34
    at Array.map (<anonymous>)
    at Creator.resolveIntroPrompts (C:\Users\AnotherUser.APPLE.000\AppData\Roaming\npm\node_modules\@vue\cli\lib\Creator.js:420:51)
    at new Creator (C:\Users\AnotherUser.APPLE.000\AppData\Roaming\npm\node_modules\@vue\cli\lib\Creator.js:55:50)
    at create (C:\Users\AnotherUser.APPLE.000\AppData\Roaming\npm\node_modules\@vue\cli\lib\create.js:71:19)
    at module.exports (C:\Users\AnotherUser.APPLE.000\AppData\Roaming\npm\node_modules\@vue\cli\lib\create.js:76:10)
    at Command.<anonymous> (C:\Users\AnotherUser.APPLE.000\AppData\Roaming\npm\node_modules\@vue\cli\bin\vue.js:81:29)

What is expected?

Create a Vue app, asking some questions

What is actually happening?

Getting the above error.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
sodateacommented, Oct 12, 2020

Did you use a remote preset?

The error stack indicates that the preset you choose does not have a plugins field https://github.com/vuejs/vue-cli/blob/v4.5.6/packages/%40vue/cli/lib/util/features.js#L14

But that’s not possible for default preset or any other locally saved presets generated by Vue CLI.

1reaction
sodateacommented, Oct 12, 2020

What does it mean? I do have installed @vue/cli using npm install -g @vue/cli

Could be a bug in https://github.com/tabrindle/envinfo, which the vue info command depends on.

Read more comments on GitHub >

github_iconTop Results From Across the Web

App created with vue initi throws error - Stack Overflow
1. I'd guess there's an Unexpected token { in ./src/App.vue · It's the first time that I use vue, and in app.vue everything...
Read more >
@vue/cli-service | Yarn - Package Manager
In Vue 2.7, vue-template-compiler is no longer a required peer dependency. Rather, there's a new export under the main package as vue/compiler-sfc ....
Read more >
Build a Basic CRUD App with Vue.js and Node | Okta Developer
This post shows you how to use build a basic CRUD application with Vue.js and Node. You'll also learn how to use Okta's...
Read more >
[Solved]-vue js app yarn serve is failing with exit code 1.?
Coding example for the question vue js app yarn serve is failing with exit code 1.?-Vue.js.
Read more >
app | Electron
Emitted when all windows have been closed and the application will quit. ... If the path specifies a directory that does not exist,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found