上接安装程序:
https://blog.csdn.net/milijiangjun/article/details/104017289
安装完毕后我们可以查看我们的版本
node -v npm -v
效果如下
这个时候表示我们的node 安装成功 npm 也正常
现在我们要在此基础上进行安装vue
我们把nodejs 安装在了 F:\AddRuanJoms\NodeJs
打开cmd 命令 进行查看当前的环境变量,输入
echo %PATH%
在这里我们可以看到我们的环境的变量信息
我们打开 C:\Users\admin\AppData\Roaming 磁盘地址
我们会看到现在的文件信息 npm 和npm-cahe
npm的本地仓库跑在系统盘c盘的用户目录了(没见到npm-cache是因为没有用过,一使用缓存目录就生成了),我们试图把这2个目录移动回到F:\AddRuanJoms\NodeJs
在我们的node 安装盘符新建文件夹如图
命令如下:
npm config set prefix "F:\AddRuanJoms\NodeJs\node_global"
npm config set prefix "F:\AddRuanJoms\NodeJs\node_cache"
然后我们查看下当前的信息发现出错了。。
查看原因是我们执行命令错了。。那么我们从新执行下
npm config set prefix "F:\AddRuanJoms\NodeJs\node_global"
npm config set cache "F:\AddRuanJoms\NodeJs\node_cache"
npm list -global
npm list -cache
输入命令npm config set registry=http://registry.npm.taobao.org 配置镜像站
然后输入命令npm config list 查看配置信息
C:\Users\admin>npm config set registry=http://registry.npm.taobao.org
C:\Users\admin>npm config list
; cli configs
user-agent = "npm/2.15.1 node/v4.4.3 win32 x64"
; userconfig C:\Users\admin\.npmrc
cache = "F:\\AddRuanJoms\\NodeJs\\node_cache"
prefix = "F:\\AddRuanJoms\\NodeJs\\node_global"
registry = "http://registry.npm.taobao.org/"
; builtin config undefined
; node bin location = F:\AddRuanJoms\NodeJs\node.exe
; cwd = C:\Users\admin
; HOME = C:\Users\admin
; 'npm config ls -l' to show all defaults.
输入命令npm config list 显示所有配置信息,我们关注一个配置文件 C:\Users\admin\.npmrc
检查一下镜像站行不行命令1 检查镜像站
npm config get registry
检查一下镜像站行不行命令2 检查获取vue模块信息
npm info vue
其他代码信息如下:
整体的为:
Microsoft Windows [版本 10.0.18362.30]
(c) 2019 Microsoft Corporation。保留所有权利。
C:\Users\admin>node -v
v4.4.3
C:\Users\admin>npm -v
2.15.1
C:\Users\admin>npm config set prefix "F:\AddRuanJoms\NodeJs\node_global"
C:\Users\admin>npm config set cache "F:\AddRuanJoms\NodeJs\node_cache"
C:\Users\admin>npm config set registry=http://registry.npm.taobao.org
C:\Users\admin>npm config list
; cli configs
user-agent = "npm/2.15.1 node/v4.4.3 win32 x64"
; userconfig C:\Users\admin\.npmrc
cache = "F:\\AddRuanJoms\\NodeJs\\node_cache"
prefix = "F:\\AddRuanJoms\\NodeJs\\node_global"
registry = "http://registry.npm.taobao.org/"
; builtin config undefined
; node bin location = F:\AddRuanJoms\NodeJs\node.exe
; cwd = C:\Users\admin
; HOME = C:\Users\admin
; 'npm config ls -l' to show all defaults.
C:\Users\admin>npm config get registry
http://registry.npm.taobao.org/
C:\Users\admin>npm info vue
{ name: 'vue',
description: 'Reactive, component-oriented view layer for modern web interfaces.',
'dist-tags': { csp: '1.0.28-csp', latest: '2.6.11', next: '3.0.0-alpha.4' },
maintainers: 'yyx990803 <yyx990803@gmail.com>',
time:
{ modified: '2020-01-27T21:20:58.000Z',
created: '2013-12-07T06:09:48.297Z',
'3.0.0-alpha.4': '2020-01-27T21:20:38.568Z',
'3.0.0-alpha.3': '2020-01-22T16:11:01.252Z',
'3.0.0-alpha.2': '2020-01-13T22:45:02.646Z',
'3.0.0-alpha.1': '2020-01-02T23:25:48.108Z',
'3.0.0-alpha.0': '2019-12-20T18:40:15.347Z',
'2.6.11': '2019-12-13T19:58:51.873Z',
'2.6.10': '2019-03-20T06:27:16.260Z',
'2.6.9': '2019-03-14T09:02:23.599Z',
'2.6.8': '2019-03-01T15:03:48.017Z',
'2.6.7': '2019-02-21T22:06:32.084Z',
'2.6.6': '2019-02-12T04:20:20.067Z',
'2.6.5': '2019-02-11T05:14:44.992Z',
'2.6.4': '2019-02-08T21:45:02.739Z',
'2.6.3': '2019-02-06T21:52:19.161Z',
'2.6.2': '2019-02-05T03:52:55.489Z',
'2.6.1': '2019-02-04T22:51:46.546Z',
'2.6.0': '2019-02-04T15:57:15.649Z',
'2.6.0-beta.3': '2019-01-30T14:59:57.502Z',
'2.6.0-beta.2': '2019-01-26T04:38:50.595Z',
'2.6.0-beta.1': '2019-01-16T16:21:41.922Z',
'2.5.22': '2019-01-11T23:18:40.863Z',
'2.5.21': '2018-12-11T22:52:31.400Z',
'2.5.20': '2018-12-10T16:57:36.512Z',
'2.5.19': '2018-12-09T21:26:20.931Z',
'2.5.18': '2018-12-07T21:09:20.291Z',
'2.5.18-beta.0': '2018-12-02T21:14:08.116Z',
'2.5.17': '2018-08-01T19:31:34.804Z',
'2.5.17-beta.0': '2018-03-23T23:29:13.819Z',
'2.5.16': '2018-03-13T22:14:28.959Z',
'2.5.15': '2018-03-10T23:36:55.780Z',
'2.5.14': '2018-03-09T21:42:13.463Z',
'2.5.13': '2017-12-19T19:07:03.185Z',
'2.5.12': '2017-12-19T14:54:26.793Z',
'2.5.11': '2017-12-14T16:56:14.790Z',
'2.5.10': '2017-12-12T23:16:50.457Z',
'2.5.9': '2017-11-27T17:43:43.727Z',
'2.5.8': '2017-11-21T14:42:29.228Z',
'2.5.7': '2017-11-20T19:49:36.077Z',
'2.5.6': '2017-11-18T19:44:18.720Z',
'2.5.5': '2017-11-17T16:37:05.558Z',
'2.5.4': '2017-11-16T19:55:19.757Z',
'2.5.3': '2017-11-03T21:11:37.399Z',
'2.5.2': '2017-10-13T20:21:14.556Z',
'2.5.1': '2017-10-13T14:14:44.817Z',
'2.5.0': '2017-10-13T03:07:43.841Z',
'2.4.4': '2017-09-14T15:32:52.487Z',
'2.4.3': '2017-09-13T07:57:40.361Z',
'2.4.2': '2017-07-21T04:28:43.739Z',
'2.4.1': '2017-07-13T06:40:52.424Z',
'2.4.0': '2017-07-13T05:59:58.195Z',
'2.3.4': '2017-06-08T04:54:50.550Z',
'2.3.3': '2017-05-09T16:57:59.102Z',
'2.3.2': '2017-05-02T10:30:25.167Z',
'2.3.1': '2017-05-02T07:59:33.809Z',
'2.3.0': '2017-04-27T06:22:30.251Z',
'2.3.0-beta.1': '2017-04-26T10:32:45.472Z',
'2.2.6': '2017-03-27T02:46:27.224Z',
'2.2.5': '2017-03-24T04:53:46.566Z',
'2.2.4': '2017-03-13T15:08:23.692Z',
'2.2.3': '2017-03-13T08:08:12.196Z',
'2.2.2': '2017-03-09T04:23:54.613Z',
'2.2.1': '2017-02-26T13:10:58.636Z',
'2.2.0': '2017-02-26T04:32:12.374Z',
'2.2.0-beta.2': '2017-02-25T00:01:22.141Z',
'2.2.0-beta.1': '2017-02-24T04:22:29.318Z',
'2.1.10': '2017-01-17T17:17:23.075Z',
'2.1.9': '2017-01-16T23:48:18.241Z',
'2.1.8': '2016-12-28T05:54:46.485Z',
'2.1.7': '2016-12-24T16:36:26.289Z',
'2.1.6': '2016-12-13T17:22:37.865Z',
'2.1.5': '2016-12-13T03:09:37.917Z',
'2.1.4': '2016-12-02T03:01:28.900Z',
'2.1.3': '2016-11-24T00:22:21.218Z',
'2.1.2': '2016-11-23T23:42:24.420Z',
'2.1.1': '2016-11-23T21:00:48.669Z',
'2.1.0': '2016-11-22T16:15:14.206Z',
'2.0.8': '2016-11-20T03:15:06.652Z',
'2.0.7': '2016-11-16T21:54:34.348Z',
'2.0.6': '2016-11-15T23:05:12.674Z',
'2.0.5': '2016-11-05T03:47:33.287Z',
'2.0.4': '2016-11-04T20:47:12.563Z',
'2.0.3': '2016-10-13T09:27:34.643Z',
'2.0.2': '2016-10-12T04:54:13.325Z',
'2.0.1': '2016-09-30T21:12:13.389Z',
'2.0.0': '2016-09-30T18:32:13.071Z',
'2.0.0-rc.8': '2016-09-27T21:08:34.332Z',
'1.0.28-csp': '2016-09-27T20:47:26.372Z',
'1.0.28': '2016-09-27T20:45:42.280Z',
'2.0.0-rc.7': '2016-09-23T22:24:58.125Z',
'1.0.27-csp': '2016-09-23T19:53:46.613Z',
'1.0.27': '2016-09-23T19:51:40.267Z',
'2.0.0-rc.6': '2016-09-13T13:21:14.193Z',
'2.0.0-rc.5': '2016-09-08T11:30:00.014Z',
'2.0.0-rc.4': '2016-08-29T19:49:11.992Z',
'2.0.0-rc.3': '2016-08-20T18:05:02.596Z',
'2.0.0-rc.2': '2016-08-16T03:39:15.211Z',
'2.0.0-rc.1': '2016-08-11T05:43:21.414Z',
'2.0.0-beta.8': '2016-08-10T04:55:41.561Z',
'2.0.0-beta.7': '2016-08-05T22:10:35.353Z',
'2.0.0-beta.6': '2016-08-01T19:27:42.081Z',
'2.0.0-beta.5': '2016-07-27T04:25:51.572Z',
'2.0.0-beta.4': '2016-07-26T02:04:31.349Z',
'2.0.0-beta.3': '2016-07-24T02:45:22.313Z',
'2.0.0-beta.2': '2016-07-17T05:51:27.401Z',
'2.0.0-beta.1': '2016-07-07T21:51:47.724Z',
'1.0.26-csp': '2016-06-28T21:42:53.706Z',
'1.0.26': '2016-06-28T20:57:34.028Z',
'2.0.0-alpha.8': '2016-06-28T09:02:18.167Z',
'2.0.0-alpha.7': '2016-06-28T02:24:20.794Z',
'2.0.0-alpha.6': '2016-06-22T19:33:28.089Z',
'2.0.0-alpha.5': '2016-06-17T18:22:45.156Z',
'1.0.25-csp': '2016-06-16T22:37:40.390Z',
'1.0.25': '2016-06-16T22:29:30.877Z',
'2.0.0-alpha.4': '2016-06-16T17:00:54.200Z',
'2.0.0-alpha.3': '2016-06-15T18:22:44.981Z',
'2.0.0-alpha.2': '2016-06-13T23:36:54.955Z',
'2.0.0-alpha.1': '2016-06-10T23:34:30.472Z',
'1.0.24-csp': '2016-05-11T21:59:55.010Z',
'1.0.24': '2016-05-11T21:57:37.358Z',
'1.0.23-csp': '2016-05-11T16:22:30.910Z',
'1.0.23': '2016-05-11T16:20:56.995Z',
'1.0.22-csp': '2016-05-07T22:00:53.845Z',
'1.0.22': '2016-05-07T21:59:24.459Z',
'1.0.21-csp': '2016-04-07T22:11:14.714Z',
'1.0.21': '2016-04-07T22:08:12.136Z',
'1.0.20-csp': '2016-03-26T21:24:54.499Z',
'1.0.20': '2016-03-26T21:20:12.830Z',
'1.0.19-csp': '2016-03-25T07:24:11.639Z',
'1.0.19': '2016-03-25T07:19:25.592Z',
'1.0.18-csp': '2016-03-18T00:54:16.541Z',
'1.0.18': '2016-03-18T00:37:50.511Z',
'1.0.17-csp': '2016-02-29T02:24:33.094Z',
'1.0.17': '2016-02-29T01:17:27.612Z',
'1.0.16-csp': '2016-01-30T10:38:42.919Z',
'1.0.16': '2016-01-30T09:41:50.987Z',
'1.0.15-csp': '2016-01-18T19:52:06.412Z',
'1.0.15': '2016-01-18T19:43:57.031Z',
'1.0.14-csp': '2016-01-11T20:39:19.998Z',
'1.0.14': '2016-01-11T20:12:35.173Z',
'1.0.13-csp': '2015-12-25T03:54:53.045Z',
'1.0.13': '2015-12-24T22:39:46.324Z',
'1.0.12-csp-1': '2015-12-18T21:35:01.682Z',
'1.0.12-csp': '2015-12-17T23:23:50.790Z',
'1.0.12': '2015-12-17T23:12:18.653Z',
'1.0.11-csp': '2015-12-11T13:20:49.744Z',
'1.0.11': '2015-12-10T05:00:17.976Z',
'1.0.10-csp': '2015-11-23T21:59:26.254Z',
'1.0.10': '2015-11-23T19:59:21.772Z',
'1.0.9': '2015-11-23T19:32:33.193Z',
'1.0.8': '2015-11-12T21:58:57.930Z',
'1.0.7': '2015-11-06T16:38:13.280Z',
'1.0.6': '2015-11-05T19:52:41.356Z',
'1.0.5': '2015-11-05T19:36:29.856Z',
'1.0.4': '2015-10-31T20:39:46.788Z',
'1.0.3': '2015-10-29T02:13:54.069Z',
'1.0.2': '2015-10-29T01:46:40.533Z',
'1.0.1': '2015-10-27T17:58:37.258Z',
'1.0.0': '2015-10-27T01:40:01.625Z',
'1.0.0-migration': '2015-10-27T01:31:29.819Z',
'1.0.0-csp': '2015-10-27T01:22:14.988Z',
'1.0.0-rc.2': '2015-10-23T00:43:40.605Z',
'1.0.0-rc.2-migration': '2015-10-23T00:38:54.546Z',
'1.0.0-rc.1': '2015-10-15T21:14:16.364Z',
'1.0.0-beta.4': '2015-10-11T00:47:41.951Z',
'1.0.0-alpha.8': '2015-10-11T00:38:39.712Z',
'1.0.0-beta.3': '2015-10-02T20:17:44.825Z',
'1.0.0-alpha.7': '2015-10-02T20:13:10.203Z',
'1.0.0-beta.2': '2015-09-25T20:53:16.825Z',
'1.0.0-alpha.6': '2015-09-25T20:34:58.129Z',
'0.12.16-csp': '2015-09-25T20:29:32.399Z',
'0.12.16': '2015-09-25T20:20:05.130Z',
'1.0.0-beta.1': '2015-09-21T19:12:57.424Z',
'1.0.0-alpha.5': '2015-09-19T22:14:44.591Z',
'0.12.15-csp': '2015-09-19T21:39:37.485Z',
'0.12.15': '2015-09-19T21:33:22.503Z',
'1.0.0-alpha.4': '2015-09-11T18:27:50.726Z',
'0.12.14-csp': '2015-09-11T18:19:13.220Z',
'0.12.14': '2015-09-11T18:16:41.183Z',
'1.0.0-alpha.3': '2015-09-07T20:21:11.010Z',
'0.12.13-csp': '2015-09-07T20:15:03.743Z',
'0.12.13': '2015-09-07T20:10:20.284Z',
'1.0.0-alpha.2': '2015-09-01T20:24:39.769Z',
'1.0.0-alpha.1': '2015-08-31T20:59:27.696Z',
'0.12.12-csp': '2015-08-26T09:01:23.742Z',
'0.12.12': '2015-08-26T08:48:27.269Z',
'0.12.11-csp': '2015-08-25T17:10:02.340Z',
'0.12.11': '2015-08-25T16:58:07.841Z',
'0.12.10-csp': '2015-08-10T03:58:22.274Z',
'0.12.10': '2015-08-10T03:39:18.266Z',
'0.12.9-csp': '2015-07-31T21:10:16.053Z',
'0.12.9': '2015-07-31T20:31:03.040Z',
'0.12.8-csp': '2015-07-23T18:48:02.193Z',
'0.12.8': '2015-07-23T15:23:32.611Z',
'0.12.7-csp': '2015-07-07T18:54:26.904Z',
'0.12.7': '2015-07-07T18:51:27.275Z',
'0.12.6-csp': '2015-07-05T08:24:29.694Z',
'0.12.6': '2015-07-05T07:48:30.721Z',
'0.12.5-csp': '2015-07-03T01:11:03.345Z',
'0.12.5': '2015-07-02T15:04:50.935Z',
'0.12.4': '2015-06-25T22:26:20.944Z',
'0.12.3': '2015-06-25T17:38:09.802Z',
'0.12.2': '2015-06-25T14:51:59.565Z',
'0.12.1-csp.2': '2015-06-16T17:14:26.645Z',
'0.12.1-csp.1': '2015-06-16T17:02:39.526Z',
'0.12.1-csp': '2015-06-14T05:56:45.870Z',
'0.12.1': '2015-06-14T05:28:12.433Z',
'0.12.0-csp': '2015-06-12T20:50:01.816Z',
'0.12.0': '2015-06-12T17:34:35.326Z',
'0.12.0-rc2': '2015-06-04T19:00:26.474Z',
'0.12.0-rc': '2015-06-01T20:56:52.316Z',
'0.12.0-beta5': '2015-05-30T02:27:57.264Z',
'0.12.0-beta4': '2015-05-26T16:51:10.607Z',
'0.12.0-beta3': '2015-05-22T20:08:57.836Z',
'0.12.0-beta2': '2015-05-16T18:22:58.104Z',
'0.12.0-beta1': '2015-05-16T17:25:13.491Z',
'0.11.10': '2015-05-07T19:00:43.870Z',
'0.11.9': '2015-05-06T20:40:14.353Z',
'0.11.8': '2015-04-21T20:10:47.755Z',
'0.11.7': '2015-04-21T03:19:52.363Z',
'0.11.6': '2015-04-18T07:11:26.742Z',
'0.11.5': '2015-02-05T21:29:54.653Z',
'0.11.4': '2014-12-07T20:44:16.730Z',
'0.11.3': '2014-12-02T17:23:08.144Z',
'0.11.2': '2014-12-02T02:38:46.620Z',
'0.11.1': '2014-12-01T00:25:20.710Z',
'0.11.0': '2014-11-07T01:52:49.130Z',
'0.11.0-rc3': '2014-10-24T16:54:11.017Z',
'0.11.0-rc2': '2014-10-07T17:08:40.846Z',
'0.11.0-rc': '2014-09-27T01:26:13.384Z',
'0.10.6': '2014-07-29T02:42:46.414Z',
'0.10.5': '2014-06-06T19:09:26.096Z',
'0.10.4': '2014-04-25T19:48:04.430Z',
'0.10.3': '2014-03-26T23:13:06.427Z',
'0.10.2': '2014-03-25T04:20:04.786Z',
'0.10.1': '2014-03-24T08:11:43.379Z',
'0.10.0': '2014-03-23T18:53:07.403Z',
'0.9.3': '2014-03-02T23:22:22.113Z',
'0.9.2': '2014-02-25T22:29:51.748Z',
'0.9.1': '2014-02-25T15:34:00.231Z',
'0.9.0': '2014-02-25T06:16:32.434Z',
'0.8.8': '2014-02-20T22:56:32.861Z',
'0.8.7': '2014-02-20T19:02:49.368Z',
'0.8.6': '2014-02-14T07:04:48.933Z',
'0.8.4': '2014-02-09T02:39:35.620Z',
'0.8.3': '2014-02-06T02:21:37.894Z',
'0.8.2': '2014-02-03T22:18:34.108Z',
'0.8.1': '2014-02-02T05:49:12.091Z',
'0.8.0': '2014-01-27T05:15:59.620Z',
'0.7.6': '2014-01-19T03:43:46.191Z',
'0.7.5': '2014-01-13T21:04:55.424Z',
'0.7.4': '2014-01-10T21:57:04.827Z',
'0.7.3': '2014-01-06T19:13:46.961Z',
'0.7.1': '2013-12-24T21:58:45.125Z',
'0.7.0': '2013-12-24T02:10:40.441Z',
'0.6.0': '2013-12-08T00:36:06.595Z',
'0.0.0': '2013-12-07T06:09:48.297Z' },
users:
{ granttimmerman: true,
holic: true,
kewah: true,
pid: true,
groovyquan: true,
hellbeast92: true,
knownasilya: true,
thomasjo: true,
cypark: true,
finico: true,
thebearingedge: true,
tripu: true,
nickeltobias: true,
cdll: true,
dragonfire1119: true,
inca: true,
gilvannfilho: true,
evan2x: true,
tobiasnickel: true,
sternelee: true,
ux_web: true,
feliperibeiror: true,
agirorn: true,
nkmr_jp: true,
dennykuo: true,
'thomas.miele': true,
amirrustam: true,
landy2014: true,
ristostevcev: true,
marais: true,
guidoschmidt: true,
soulchainer: true,
viktorivanov: true,
dainov: true,
evertramos: true,
reekdeb: true,
rexpan: true,
lcdss: true,
matthewh: true,
qwer34: true,
chenshao: true,
satoshiyamamoto: true,
filipve: true,
abuelwafa: true,
miuler: true,
hyteer: true,
clwm01: true,
jellycheng: true,
chriszs: true,
faraoman: true,
pdedkov: true,
duxing: true,
lassevolkmann: true,
thijskok: true,
irnnr: true,
ijse: true,
ridermansb: true,
matkovsky: true,
pkhotpanya: true,
chironshi: true,
temasm: true,
copitz: true,
knoja4: true,
mindrudan: true,
jaywin: true,
jricardoprog: true,
danielbayley: true,
questioneer: true,
illuminator: true,
krry: true,
mors84: true,
hiltond2: true,
fanenji: true,
ww522413622: true,
shibamudi: true,
max_devjs: true,
inectum: true,
sergeif: true,
quafoo: true,
webnicola: true,
ghettovoice: true,
andparsons: true,
bobxuyang: true,
qxl1231: true,
doterlin: true,
pixelcraft: true,
zerodark: true,
leocreatini: true,
guzgarcia: true,
anoubis: true,
stephenykk: true,
martinjh: true,
shooteram: true,
spences10: true,
nicksnell: true,
lupideo: true,
michaelyurin: true,
adammench: true,
guogai: true,
themadjoker: true,
jaxx2104: true,
kingnigel: true,
ibambo: true,
landen: true,
cfdrake: true,
shiva127: true,
alexandrebonaventure: true,
emersonmx: true,
suemcnab: true,
webdevian: true,
maximobelen: true,
sfi0zy: true,
ryanve: true,
potentii: true,
pmbenjamin: true,
chinawolf_wyp: true,
misterrusty: true,
bigglesatlarge: true,
vinnyfonseca: true,
foxted: true,
yuanjiahui: true,
bogdanvlviv: true,
jaxcode: true,
dewdad: true,
fl3nkey: true,
reinerba: true,
raniesantos: true,
juje: true,
rebolon: true,
philmayer: true,
gurunate: true,
yangzj1992: true,
dnero: true,
antoniojps: true,
splode: true,
heartnett: true,
modood: true,
djviolin: true,
arcanedev: true,
panlw: true,
ferchoriverar: true,
andmeics: true,
sibawite: true,
clivend: true,
johnnyasantoss: true,
ashtonsoftwarelabs: true,
linger: true,
cattle: true,
nonthasart: true,
phdong: true,
naokie: true,
yanchanglu: true,
brunoluizgr: true,
albertico88: true,
mlcdf: true,
atinux: true,
jens1101: true,
madarche: true,
corygibbons: true,
damlys: true,
vinayakkulkarni: true,
gxglwy: true,
gracelee: true,
paulkolesnyk: true,
jkramorev: true,
kron4eg: true,
mcfarljw: true,
ftgibran: true,
largepuma: true,
yeming: true,
datianjiao: true,
'dhanya-kr': true,
hitalos: true,
mysticatea: true,
rbeadie: true,
ssljivic: true,
nelson6e65: true,
mgthomas99: true,
jream: true,
'shay-altman': true,
iamninad: true,
liuyidi: true,
mubaidr: true,
fakefarm: true,
yangzw: true,
tztz: true,
thomasleveil: true,
maddas: true,
orenschwartz: true,
dmonti: true,
rudchyk: true,
'kamil.ocean': true,
tryvols: true,
po3rin: true,
starknode: true,
keybouh: true,
ik_make: true,
'i-erokhin': true,
greatbee: true,
amirhosein: true,
'eric.chen': true,
sheilating: true,
mwojtera: true,
dewsalot: true,
cr_ly: true,
'71emj1': true,
dennila2: true,
sujeet555: true,
shroudedcode: true,
softskills: true,
liyq: true,
qinshixixing: true,
ralphkay: true,
gtopia: true,
etoxin: true,
mdedirudianto: true,
wangyi7099: true,
elle0903: true,
benrowe: true,
zozovo: true,
huiyifyj: true,
johnny_kim: true,
serdarb: true,
juananto11: true,
linko: true,
rochejul: true,
eduarte78: true,
tyl: true,
chrislynch97: true,
takidelfin: true,
dandunckelman: true,
logol: true,
gavrashenko: true,
haykerman: true,
tdglj: true,
arnaurius: true,
kc_vip30: true,
payaamemami: true,
jsweibo: true,
'3vil_arthas': true,
colinox: true,
tangxiaomi: true,
zhihang: true,
mjkhonline: true,
aryanvikta: true },
author: 'Evan You',
repository: { type: 'git', url: 'git+https://github.com/vuejs/vue.git' },
versions:
[ '0.0.0',
'0.6.0',
'0.7.0',
'0.7.1',
'0.7.3',
'0.7.4',
'0.7.5',
'0.7.6',
'0.8.0',
'0.8.1',
'0.8.2',
'0.8.3',
'0.8.4',
'0.8.6',
'0.8.7',
'0.8.8',
'0.9.0',
'0.9.1',
'0.9.2',
'0.9.3',
'0.10.0',
'0.10.1',
'0.10.2',
'0.10.3',
'0.10.4',
'0.10.5',
'0.10.6',
'0.11.0-rc',
'0.11.0-rc2',
'0.11.0-rc3',
'0.11.0',
'0.11.1',
'0.11.2',
'0.11.3',
'0.11.4',
'0.11.5',
'0.11.6',
'0.11.7',
'0.11.8',
'0.11.9',
'0.11.10',
'0.12.0-beta1',
'0.12.0-beta2',
'0.12.0-beta3',
'0.12.0-beta4',
'0.12.0-beta5',
'0.12.0-csp',
'0.12.0-rc',
'0.12.0-rc2',
'0.12.0',
'0.12.1-csp',
'0.12.1-csp.1',
'0.12.1-csp.2',
'0.12.1',
'0.12.2',
'0.12.3',
'0.12.4',
'0.12.5-csp',
'0.12.5',
'0.12.6-csp',
'0.12.6',
'0.12.7-csp',
'0.12.7',
'0.12.8-csp',
'0.12.8',
'0.12.9-csp',
'0.12.9',
'0.12.10-csp',
'0.12.10',
'0.12.11-csp',
'0.12.11',
'0.12.12-csp',
'0.12.12',
'0.12.13-csp',
'0.12.13',
'0.12.14-csp',
'0.12.14',
'0.12.15-csp',
'0.12.15',
'0.12.16-csp',
'0.12.16',
'1.0.0-alpha.1',
'1.0.0-alpha.2',
'1.0.0-alpha.3',
'1.0.0-alpha.4',
'1.0.0-alpha.5',
'1.0.0-alpha.6',
'1.0.0-alpha.7',
'1.0.0-alpha.8',
'1.0.0-beta.1',
'1.0.0-beta.2',
'1.0.0-beta.3',
'1.0.0-beta.4',
'1.0.0-csp',
'1.0.0-migration',
'1.0.0-rc.1',
'1.0.0-rc.2',
'1.0.0-rc.2-migration',
'1.0.0',
'1.0.1',
'1.0.2',
'1.0.3',
'1.0.4',
'1.0.5',
'1.0.6',
'1.0.7',
'1.0.8',
'1.0.9',
'1.0.10-csp',
'1.0.10',
'1.0.11-csp',
'1.0.11',
'1.0.12-csp',
'1.0.12-csp-1',
'1.0.12',
'1.0.13-csp',
'1.0.13',
'1.0.14-csp',
'1.0.14',
'1.0.15-csp',
'1.0.15',
'1.0.16-csp',
'1.0.16',
'1.0.17-csp',
'1.0.17',
'1.0.18-csp',
'1.0.18',
'1.0.19-csp',
'1.0.19',
'1.0.20-csp',
'1.0.20',
'1.0.21-csp',
'1.0.21',
'1.0.22-csp',
'1.0.22',
'1.0.23-csp',
'1.0.23',
'1.0.24-csp',
'1.0.24',
'1.0.25-csp',
'1.0.25',
'1.0.26-csp',
'1.0.26',
'1.0.27-csp',
'1.0.27',
'1.0.28-csp',
'1.0.28',
'2.0.0-alpha.1',
'2.0.0-alpha.2',
'2.0.0-alpha.3',
'2.0.0-alpha.4',
'2.0.0-alpha.5',
'2.0.0-alpha.6',
'2.0.0-alpha.7',
'2.0.0-alpha.8',
'2.0.0-beta.1',
'2.0.0-beta.2',
'2.0.0-beta.3',
'2.0.0-beta.4',
'2.0.0-beta.5',
'2.0.0-beta.6',
'2.0.0-beta.7',
'2.0.0-beta.8',
'2.0.0-rc.1',
'2.0.0-rc.2',
'2.0.0-rc.3',
'2.0.0-rc.4',
'2.0.0-rc.5',
'2.0.0-rc.6',
'2.0.0-rc.7',
'2.0.0-rc.8',
'2.0.0',
'2.0.1',
'2.0.2',
'2.0.3',
'2.0.4',
'2.0.5',
'2.0.6',
'2.0.7',
'2.0.8',
'2.1.0',
'2.1.1',
'2.1.2',
'2.1.3',
'2.1.4',
'2.1.5',
'2.1.6',
'2.1.7',
'2.1.8',
'2.1.9',
'2.1.10',
'2.2.0-beta.1',
'2.2.0-beta.2',
'2.2.0',
'2.2.1',
'2.2.2',
'2.2.3',
'2.2.4',
'2.2.5',
'2.2.6',
'2.3.0-beta.1',
'2.3.0',
'2.3.1',
'2.3.2',
'2.3.3',
'2.3.4',
'2.4.0',
'2.4.1',
'2.4.2',
'2.4.3',
'2.4.4',
'2.5.0',
'2.5.1',
'2.5.2',
'2.5.3',
'2.5.4',
'2.5.5',
'2.5.6',
'2.5.7',
'2.5.8',
'2.5.9',
'2.5.10',
'2.5.11',
'2.5.12',
'2.5.13',
'2.5.14',
'2.5.15',
'2.5.16',
'2.5.17-beta.0',
'2.5.17',
'2.5.18-beta.0',
'2.5.18',
'2.5.19',
'2.5.20',
'2.5.21',
'2.5.22',
'2.6.0-beta.1',
'2.6.0-beta.2',
'2.6.0-beta.3',
'2.6.0',
'2.6.1',
'2.6.2',
'2.6.3',
'2.6.4',
'2.6.5',
'2.6.6',
'2.6.7',
'2.6.8',
'2.6.9',
'2.6.10',
'2.6.11',
'3.0.0-alpha.0',
'3.0.0-alpha.1',
'3.0.0-alpha.2',
'3.0.0-alpha.3',
'3.0.0-alpha.4' ],
homepage: 'https://github.com/vuejs/vue#readme',
bugs: { url: 'https://github.com/vuejs/vue/issues' },
license: 'MIT',
version: '2.6.11',
main: 'dist/vue.runtime.common.js',
module: 'dist/vue.runtime.esm.js',
unpkg: 'dist/vue.js',
jsdelivr: 'dist/vue.js',
typings: 'types/index.d.ts',
sideEffects: false,
scripts:
{ dev: 'rollup -w -c scripts/config.js --environment TARGET:web-full-dev',
'dev:cjs': 'rollup -w -c scripts/config.js --environment TARGET:web-runtime-cjs-dev',
'dev:esm': 'rollup -w -c scripts/config.js --environment TARGET:web-runtime-esm',
'dev:test': 'karma start test/unit/karma.dev.config.js',
'dev:ssr': 'rollup -w -c scripts/config.js --environment TARGET:web-server-renderer',
'dev:compiler': 'rollup -w -c scripts/config.js --environment TARGET:web-compiler ',
'dev:weex': 'rollup -w -c scripts/config.js --environment TARGET:weex-framework',
'dev:weex:factory': 'rollup -w -c scripts/config.js --environment TARGET:weex-factory',
'dev:weex:compiler': 'rollup -w -c scripts/config.js --environment TARGET:weex-compiler ',
build: 'node scripts/build.js',
'build:ssr': 'npm run build -- web-runtime-cjs,web-server-renderer',
'build:weex': 'npm run build -- weex',
test: 'npm run lint && flow check && npm run test:types && npm run test:cover && npm run test:e2e -- --env phantomjs && npm run test:ssr && npm run test:weex',
'test:unit': 'karma start test/unit/karma.unit.config.js',
'test:cover': 'karma start test/unit/karma.cover.config.js',
'test:e2e': 'npm run build -- web-full-prod,web-server-basic-renderer && node test/e2e/runner.js',
'test:weex': 'npm run build:weex && jasmine JASMINE_CONFIG_PATH=test/weex/jasmine.js',
'test:ssr': 'npm run build:ssr && jasmine JASMINE_CONFIG_PATH=test/ssr/jasmine.js',
'test:sauce': 'npm run sauce -- 0 && npm run sauce -- 1 && npm run sauce -- 2',
'test:types': 'tsc -p ./types/test/tsconfig.json',
lint: 'eslint src scripts test',
flow: 'flow check',
sauce: 'karma start test/unit/karma.sauce.config.js',
'bench:ssr': 'npm run build:ssr && node benchmarks/ssr/renderToString.js && node benchmarks/ssr/renderToStream.js',
release: 'bash scripts/release.sh',
'release:weex': 'bash scripts/release-weex.sh',
'release:note': 'node scripts/gen-release-note.js',
commit: 'git-cz' },
gitHooks:
{ 'pre-commit': 'lint-staged',
'commit-msg': 'node scripts/verify-commit-msg.js' },
'lint-staged': { '*.js': [ 'eslint --fix', 'git add' ] },
keywords: 'vue',
devDependencies:
{ '@babel/core': '^7.0.0',
'@babel/plugin-proposal-class-properties': '^7.1.0',
'@babel/plugin-syntax-dynamic-import': '^7.0.0',
'@babel/plugin-syntax-jsx': '^7.0.0',
'@babel/plugin-transform-flow-strip-types': '^7.0.0',
'@babel/preset-env': '^7.0.0',
'@babel/register': '^7.0.0',
'@types/node': '^12.12.0',
'@types/webpack': '^4.4.22',
acorn: '^5.2.1',
'babel-eslint': '^10.0.1',
'babel-helper-vue-jsx-merge-props': '^2.0.3',
'babel-loader': '^8.0.4',
'babel-plugin-istanbul': '^5.1.0',
'babel-plugin-transform-vue-jsx': '^4.0.1',
'babel-preset-flow-vue': '^1.0.0',
buble: '^0.19.3',
chalk: '^2.3.0',
chromedriver: '^2.45.0',
codecov: '^3.0.0',
commitizen: '^2.9.6',
'conventional-changelog': '^1.1.3',
'cross-spawn': '^6.0.5',
'cz-conventional-changelog': '^2.0.0',
'de-indent': '^1.0.2',
'es6-promise': '^4.1.0',
escodegen: '^1.8.1',
eslint: '^5.7.0',
'eslint-plugin-flowtype': '^2.34.0',
'eslint-plugin-jasmine': '^2.8.4',
'file-loader': '^3.0.1',
'flow-bin': '^0.61.0',
'hash-sum': '^1.0.2',
he: '^1.1.1',
'http-server': '^0.11.1',
jasmine: '^2.99.0',
'jasmine-core': '^2.99.0',
karma: '^3.1.1',
'karma-chrome-launcher': '^2.1.1',
'karma-coverage': '^1.1.1',
'karma-firefox-launcher': '^1.0.1',
'karma-jasmine': '^1.1.0',
'karma-mocha-reporter': '^2.2.3',
'karma-phantomjs-launcher': '^1.0.4',
'karma-safari-launcher': '^1.0.0',
'karma-sauce-launcher': '^2.0.2',
'karma-sourcemap-loader': '^0.3.7',
'karma-webpack': '^4.0.0-rc.2',
'lint-staged': '^8.0.0',
lodash: '^4.17.4',
'lodash.template': '^4.4.0',
'lodash.uniq': '^4.5.0',
'lru-cache': '^5.1.1',
nightwatch: '^0.9.16',
'nightwatch-helpers': '^1.2.0',
'phantomjs-prebuilt': '^2.1.14',
puppeteer: '^1.11.0',
resolve: '^1.3.3',
rollup: '^1.0.0',
'rollup-plugin-alias': '^1.3.1',
'rollup-plugin-buble': '^0.19.6',
'rollup-plugin-commonjs': '^9.2.0',
'rollup-plugin-flow-no-whitespace': '^1.0.0',
'rollup-plugin-node-resolve': '^4.0.0',
'rollup-plugin-replace': '^2.0.0',
'selenium-server': '^2.53.1',
'serialize-javascript': '^2.1.2',
shelljs: '^0.8.1',
terser: '^3.10.2',
typescript: '^3.6.4',
webpack: '~4.28.4',
'weex-js-runtime': '^0.23.6',
'weex-styler': '^0.3.0',
yorkie: '^2.0.0' },
config: { commitizen: { path: './node_modules/cz-conventional-changelog' } },
gitHead: 'ec78fc8b6d03e59da669be1adf4b4b5abf670a34',
dist:
{ shasum: '76594d877d4b12234406e84e35275c6d514125c5',
size: 845023,
noattachment: false,
tarball: 'https://registry.npm.taobao.org/vue/download/vue-2.6.11.tgz' },
directories: {},
publish_time: 1576267131873 }
C:\Users\admin>
然后我们开始进行当前的cnpm 的安装 用淘宝的镜像输入如下命令行
npm install -g cnpm --registry=https://registry.npm.taobao.org
出现
如果我们输入cnpm -v
检查cnpm 的版本会出错,这个时候我们要检查是否安装成功
出现上面的表示我们已经安装成功但是配置环境有问题
我们的安装的目录为:F:\AddRuanJoms\NodeJs
node_global 为我们创建的目录 F:\AddRuanJoms\NodeJs\node_global
命令符如下:
Microsoft Windows [版本 10.0.18362.30]
(c) 2019 Microsoft Corporation。保留所有权利。
C:\Users\admin>cnpm -v
'cnpm' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
C:\Users\admin>f:
F:\>cd F:\AddRuanJoms\NodeJs\node_global
F:\AddRuanJoms\NodeJs\node_global>cnpm -v
cnpm@6.1.1 (F:\AddRuanJoms\NodeJs\node_global\node_modules\cnpm\lib\parse_argv.js)
npm@6.13.7 (F:\AddRuanJoms\NodeJs\node_global\node_modules\cnpm\node_modules\npm\lib\npm.js)
node@4.4.3 (F:\AddRuanJoms\NodeJs\node.exe)
npminstall@3.27.0 (F:\AddRuanJoms\NodeJs\node_global\node_modules\cnpm\node_modules\npminstall\lib\index.js)
prefix=F:\AddRuanJoms\NodeJs\node_global
win32 x64 10.0.18362
registry=https://r.npm.taobao.org
F:\AddRuanJoms\NodeJs\node_global>
现在我们开始配置全局系统变量
我的电脑 属性 高级系统设置 高级 环境变量 添加系统变量
增加环境变量NODE_HOME 内容是:F:\AddRuanJoms\NodeJs\node_global
NODE_HOME
F:\AddRuanJoms\NodeJs\node_global
path
%NODE_HOME%
然后进行编辑
然后一路确认
接着我们从新打开cmd 命令 让 新增的系统变量进行生效 。
输入命令查询
cnpm -v
node -v
提示如下 :这样就是安装成功了。cnpm 也可以正常使用了
Microsoft Windows [版本 10.0.18362.30]
(c) 2019 Microsoft Corporation。保留所有权利。
C:\Users\admin>cnpm -v
cnpm@6.1.1 (F:\AddRuanJoms\NodeJs\node_global\node_modules\cnpm\lib\parse_argv.js)
npm@6.13.7 (F:\AddRuanJoms\NodeJs\node_global\node_modules\cnpm\node_modules\npm\lib\npm.js)
node@4.4.3 (F:\AddRuanJoms\NodeJs\node.exe)
npminstall@3.27.0 (F:\AddRuanJoms\NodeJs\node_global\node_modules\cnpm\node_modules\npminstall\lib\index.js)
prefix=F:\AddRuanJoms\NodeJs\node_global
win32 x64 10.0.18362
registry=https://r.npm.taobao.org
C:\Users\admin>node -v
v4.4.3
C:\Users\admin>