1、 NPM publish error
Note: the global scaffold version is different from the local scaffold version
Run the CMD command
NPM install NPM - G remember Global Update
Note: the registered NPM account is bound to a mailbox that has not been verified
Login mailbox verification and publish again
2、 Build target error report
Error: Vue cli service: command not found
It’s said on the Internet that I deleted node modules and re installed NPM install. I tried, but it didn’t work.
View node_ Modules found that there is no cli service in @ Vue
Manual install
npm install @vue/cli-service
Add environment variables manually
PATH=$PATH:./node_modules/.bin
Build again, success
vue-cli-service build --target lib --inline-vue