windows win10安装nodejs14.15 v14.15 二进制文件包安装 |
您所在的位置:网站首页 › win10node安装 › windows win10安装nodejs14.15 v14.15 二进制文件包安装 |
说明
windows下nodejs有两种安装方式,一种是.msi安装包,下一步下一步傻瓜式安装,还有一种是二进制文件包安装,解压后配置好环境变量即可使用,我安装个语言环境都是使用二进制文件包安装,方便、多版本、好删除、好配置 win10安装最新版node.js v14.15.0 二进制文件包安装 nodejs配置 下载 下载页面nodejs.cn/download/ 下载链接npm.taobao.org/mirrors/nod… 安装 解压解压到D:\dev\nodejs1415 配置环境变量1.在系统变量Path下面新增D:\dev\nodejs1415 2.新增系统变量NODE_PATH,变量值为D:\dev\node1415\node_global\node_modules 测试是否安装成功进入cmd执行 node -v v14.15.0 复制代码 配置 修改全局安装包路径和node缓存路径 npm config set prefix "D:\dev\node1415\node_global" npm config set cache "D:\dev\node1415\node_cache" 复制代码 测试安装第三方包 npm install -g vue 复制代码 测试代码在D:\node\test新建test.js var vue = require("vue") console.log(vue) 复制代码 执行 cd D:\node\test node test.js 复制代码 输出 [Function: Vue] { util: { warn: [Function: warn], extend: [Function: extend], mergeOptions: [Function: mergeOptions], defineReactive: [Function: defineReactive$$1] }, set: [Function: set], delete: [Function: del], nextTick: [Function: nextTick], observable: [Function (anonymous)], options: [Object: null prototype] { components: [Object: null prototype] { KeepAlive: [Object], Transition: [Object], TransitionGroup: [Object] }, directives: [Object: null prototype] { model: [Object], show: [Object] }, filters: [Object: null prototype] {}, _base: [Circular *1] }, use: [Function (anonymous)], mixin: [Function (anonymous)], cid: 0, extend: [Function (anonymous)], component: [Function (anonymous)], directive: [Function (anonymous)], filter: [Function (anonymous)], version: '2.6.12' } 复制代码 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |