-
- Notifications
You must be signed in to change notification settings - Fork 6.3k
Open
Description
Version
3.5.0
Environment info
System: OS: macOS 10.14.3 CPU: (4) x64 Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz Binaries: Node: 10.15.1 - /usr/local/bin/node Yarn: Not Found npm: 6.9.0 - /usr/local/bin/npm Browsers: Chrome: 72.0.3626.121 Firefox: Not Found Safari: 12.0.3 npmGlobalPackages: @vue/cli: 3.5.1
Steps to reproduce
On a brand new vue cli project created with vue create I want to run a vue web component bundler. I run npx vue-cli-service build --target wc --name my-element *.vue from src folder and it compiles nicely. After that, every next try ends up with 404error from https://registry.npmjs.org/vue-cli-service.
It runs again after I remove package-lock and node_modules and npm install:
rm -rf node_modules package-lock.json && npm install
What am I doing wrong ?
What is expected?
to rebuild web component every time I want it
What is actually happening?
it runs only once, on a clean project and then got error 404 every next time
removing package-lock and node_modules , then 'npm install' helps