Diary of NPM contract


1、 NPM publish error

Diary of NPM contract

Note: the global scaffold version is different from the local scaffold version

Run the CMD command

NPM install NPM - G remember Global Update

Diary of NPM contract

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 

Build again, success
vue-cli-service build --target lib --inline-vue

Recommended Today

Third party calls wechat payment interface

Step one: preparation 1. Wechat payment interface can only be called if the developer qualification has been authenticated on wechat open platform, so the first thing is to authenticate. It’s very simple, but wechat will charge 300 yuan for audit 2. Set payment directory Login wechat payment merchant platform( pay.weixin.qq . com) — > Product […]