Skip to content

CLI does not generate project structure and fails with error NO_MODULES if running ui version #2633

@Yamaha32088

Description

@Yamaha32088

Version

3.0.4

Node and OS info

8.11.4

Steps to reproduce

Fresh install of NodeJS
Execute npm i -g @vue/cli
Execute vue create test-project and select default settings

What is expected?

A project structure to be created

What is actually happening?

'.git' directory created, package.json, package-lock.json and README.md files are created.

If using the vue ui then the above files are created and an error is thrown.

$ vue ui
🚀 Starting GUI...
🌠 Ready on http://localhost:8000
⚙ Installing CLI plugins. This might take a while...

up to date in 0.057s
🚀 Invoking generators...
📦 Installing additional dependencies...

up to date in 0.042s

🎉 Successfully created project Test.
👉 Get started with the following commands:

$ cd Test
$ npm run serve

Error: NO_MODULES
at importProject (C:\Users\xxxxx\AppData\Roaming\npm\node_modules@vue\cli\node_modules@vue\cli-ui\apollo-server\connectors\projects.js:349:11)
at progress.wrap (C:\Users\xxxxx\AppData\Roaming\npm\node_modules@vue\cli\node_modules@vue\cli-ui\apollo-server\connectors\projects.js:341:12)
at
at process._tickDomainCallback (internal/process/next_tick.js:228:7)


I have another computer with matching versions of npm, node and vue and it works fine. For some reason on this computer it fails to execute properly even after multiple restarts, completely removing node, npm, vue and node upgraded to latest version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions