New projects created with the UI not created properly
See original GitHub issueVersion
3.5.1
Environment info
System:
OS: macOS 10.14.2
CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
Binaries:
Node: 11.12.0 - ~/.nvm/versions/node/v11.12.0/bin/node
Yarn: 1.15.2 - /usr/local/bin/yarn
npm: 6.7.0 - ~/.nvm/versions/node/v11.12.0/bin/npm
Browsers:
Chrome: 72.0.3626.121
Firefox: Not Found
Safari: 12.0.2
npmGlobalPackages:
@vue/cli: 3.5.1
Steps to reproduce
Create a starter app (I selected the following plugins: vue-router, vuex, node-sass, babel, eslint, unit-jest, e2e-nightwatch)
What is expected?
I expect that the UI will create the project folders (src, public …) and also install the project dependencies.
What is actually happening?
Only the node_modules folder is visible, and no project dependencies are installed.
Create the starter app two times: 1) with vue create in a terminal 2) with vue ui. When you compare the projects, the app installed with the UI is incomplete. Running npm run serve results in an (obvious) error: missing serve script.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8
Top Results From Across the Web
CLI does not generate project structure and fails with error ...
In the UI I declered that I wanted to create a new project in: "/code/project" and checked the "overwrite if existing" checkbox.
Read more >"Create project from a template" action does not r... - ServiceNow
On project form when I go to Sub-Projects related list and click new I am provided the option "To create project from a...
Read more >Create-React-App with TypeScript failing to compile after ...
Show activity on this post. I've created a new React app by running npx create-react-app@latest --typescript . and I've run the project using ......
Read more >Limitations & Troubleshooting | Android Developers
Workaround: To force an update to generated code, clean the project (go to Build > Clean Project) or delete the generated code folder ......
Read more >Cannot publish a package only templates - StudioX
I am new to StudioX & have created my first project. I can successfully ... My project has no errors & runs correctly...
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
@hito read the words here. Clearly this bug has been fixed so it is likely you are running an older version of vue-cli.
Hmm, just updated to v3.11.0 after reading this issue report. Tried creating another project and still have the same issue. The created package.json looks like this:
{ "name": "myproject", "version": "0.1.0", "private": true, "devDependencies": { "@vue/cli-plugin-babel": "^3.11.0", "@vue/cli-plugin-e2e-cypress": "^3.11.0", "@vue/cli-plugin-eslint": "^3.11.0", "@vue/cli-plugin-pwa": "^3.11.0", "@vue/cli-plugin-unit-mocha": "^3.11.0", "@vue/cli-service": "^3.11.0" } }
Trying to run npm run serve results in
npm ERR! missing script: serve
There are only three files in the project folder: package.json, package-lock.json and README.md