当前位置:网站首页>node安装及环境变量配置
node安装及环境变量配置
2022-08-02 05:20:00 【m0_67392811】
第一步
安装node包 地址http://nodejs.cn/download/
安装地址在D盘下的node文件夹
一直next直到安装结束
然后以管理员身份打开命令提示符
输入命令:node -v
有版本提示表示安装成功
第二步
安装环境变量
首先在D: ode下创建两个文件夹
node_cache(缓存目录) node_global(全局包存放目录)
打开命令提示符输入两段命令
npm config set prefix “D: ode ode_global”
npm config set cache “D: ode ode_cache”
之后右键我的电脑-属性-高级属性配置-系统属性-环境变量
在系统变量里新建
NODE_PATH D: ode ode_global ode_modules
在系统变量path里添加D: ode和%NODE_PATH%
在用户变量Path上新增D: ode ode_global
调试环境变量有没有成功
重新以管理员身份打开命令提示符
输入npm install -g vue
在
下面会成功下载一个vue
然后输入
node
require(“vue”)
出现如上图代表配置成功
之后再配置淘宝镜像
npm install -g cnpm --registry=https://registry.npm.taobao.org
完工!
先自我介绍一下,小编13年上师交大毕业,曾经在小公司待过,去过华为OPPO等大厂,18年进入阿里,直到现在。深知大多数初中级java工程师,想要升技能,往往是需要自己摸索成长或是报班学习,但对于培训机构动则近万元的学费,着实压力不小。自己不成体系的自学效率很低又漫长,而且容易碰到天花板技术停止不前。因此我收集了一份《java开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担。添加下方名片,即可获取全套学习资料哦
边栏推荐
- nacos registry
- MySQL Index Common Interview Questions (2022 Edition)
- Mining game (C language)
- The installation of NPM, CNPM
- pytorch基本操作:使用神经网络进行分类任务
- Differences between i++ and ++i in loops in C language
- Smart people's game improvement: Chapter 3, Lesson 2: "Number of Tongtong" (number)
- 程序员写PPT的小技巧
- leetcode一步解决链表合并问题
- 腾讯大咖分享 | 腾讯Alluxio(DOP)在金融场景的落地与优化实践
猜你喜欢
25K test old bird's 6-year experience in interviews, four types of companies, four types of questions...
腾讯大咖分享 | 腾讯Alluxio(DOP)在金融场景的落地与优化实践
MySQL高级SQL语句
[Cartoon] 2021 full score programmer behavior comparison table (latest version)
关于鸿蒙系统 JS UI 框架源码的分析
引领需求 为HR价值正名——“人力资源领先模型HRLM”成功首发
跨桌面端Web容器演进
C语言操作符详解(2)
Write implicit join on view with jOOQ 3.14 synthetic foreign key
MySQL高级SQL语句(二)
随机推荐
跨桌面端Web容器演进
C竞赛训练
金山云团队分享 | 5000字读懂Presto如何与Alluxio搭配
MySql COUNT statistics function explanation
The installation of NPM, CNPM
金蝶国际:半年亏掉去年一年,疯狂烧钱的商业模式如何持续
npm does not recognize the "npm" item as the name of a cmdlet, function, script file, or runnable program.Please check the spelling of the name, and if the path is included, make sure the path is corr
从入门到精通的MySQL数据库视频教程
Block elements, inline elements (
elements, span elements)Analysis of port 9848 error at startup of Nacos client (non-version upgrade problem)
npm 无法将“npm”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
排雷小游戏(C语言)
Integrate ssm (1)
Automated operation and maintenance tools - ansible, overview, installation, module introduction
A list of 300+ learning resources compiled by senior engineers of the Tao Department (the latest version in 2021)
MySql统计函数COUNT详解
BGP+MPLS综合实验
npm、cnpm的安装
如何优化OpenSumi终端性能?
Shuttle + Alluxio 加速内存Shuffle起飞