Closed
Description
Version
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.
Activity
JohnNiang commentedon Mar 19, 2019
Same error.
vue create
does only create package.json & package-lock.json #3669pymike00 commentedon Mar 22, 2019
I am facing the same issue on Manjaro 18.0.4, with:
Node 11.11.0
npm 6.9.0
Vue 3.5.1.
I also know this to be a problem on Ubuntu 18.04, with:
Node 11.12
npm 6.7
Vue 3.5.1
l-gothberg commentedon Mar 24, 2019
Same issue. Project creation runs as expected from CLI, but using UI fails.
bulletmark commentedon Mar 29, 2019
Same problem on up to date Arch Linux with
I am trying to setup https://www.sitepoint.com/creating-beautiful-charts-vue-chart-js/ and that very trivial initial setup project runs fine if I run
vue create
manually as per those instructions. I thought I would delete the project and try the new fangled UI using exactly the same creation options but it fails as per the description here. I can create the project manually and then run UI to use it but just can not create the project using UI. Repeated all this many times.Here is the "good" output using
vue create
:Here is the "bad" output using UI:
skillnull commentedon Apr 27, 2019
Same error.
tsujp commentedon May 7, 2019
I too am getting this now. New projects only create
.git
,node_modules
,package-lock.json
,package.json
, andREADME.md
.bulletmark commentedon May 7, 2019
@hito read the words here. Clearly this bug has been fixed so it is likely you are running an older version of vue-cli.
daamsie commentedon Sep 19, 2019
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