vue 安装+下载

1. npm init -y    [生成package.json文件]

2.  增加  "private": true, 

3.npm install

4. npm install vue

-------------------------------------------------

{
  "name": "1002",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
  "test": "echo "Error: no test specified" && exit 1"
},
  "keywords": [],
  "author": "",
  "license": "ISC",
  "private": true,
  "dependencies": {
  "vue": "^2.6.9"
}
}

 

原文地址:https://www.cnblogs.com/vip-deng-vip/p/10537846.html