`vue create app-name` throws an error and exits!
See original GitHub issueVersion
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
- Run
vue create test-app
. - 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:
- Created 3 years ago
- Comments:10 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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#L14But that’s not possible for default preset or any other locally saved presets generated by Vue CLI.
Could be a bug in https://github.com/tabrindle/envinfo, which the
vue info
command depends on.