当前位置:网站首页>Configure NPM
Configure NPM
2022-04-23 07:45:00 【Senior salted fish~】
(1) stay NodeJs Set up under the "node_global" And "node_cache" Two folders
(2) Enter the following command to configure npm The storage path of the global module and cache The path of
npm config set prefix + node_global The path of
npm config set cache + node_cache The path of
(3) Configure system variables , newly build NODE_PATH Post input node_modules The path of
(4) Try to install by entering the following command from the command line express( notes :“-g” This parameter means to load to global Under the table of contents , That is to say, the settings mentioned above “E:\Node.js\node_global” Inside )
npm install express -g
(5) You can see express We downloaded it to node_global Under the node_modules Next
(6) Enter at the command line node Enter edit mode , Enter the following code to test whether the module can be loaded normally
require('express')
success , You can see the following output
If something goes wrong , Check NODE_PATH Path or express Whether the path of is written correctly
版权声明
本文为[Senior salted fish~]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230623087039.html
边栏推荐
猜你喜欢
SAP RFC_CVI_EI_INBOUND_MAIN BP主数据创建示例(仅演示客户)
On BFC (block formatting context)
ABAP 从CDS VIEW 发布OData Service示例
Solutions to common problems in visualization (VII) solutions to drawing scale setting
js之排他思想及案例
keytool: command not found
设置了body的最大宽度,但是为什么body的背景颜色还铺满整个页面?
如何SQL 语句UNION实现当一个表中的一列内容为空时则取另一个表的另一列
BTREE, B + tree and hash index
反思 | Android 音视频缓存机制的系统性设计
随机推荐
二叉树的深度
【TED系列】一个习惯是如何改变我的一生
【自我激励系列】你永远不会准备好
url转成对象
Understanding of STL container
14. Transaction processing
SAP SALV14 后台输出SALV数据可直接保存文件,发送Email(带排序、超链接、筛选格式)
移动Web(字体图标、平面转换、颜色渐变)
King glory - unity learning journey
5.SQL99标准:内连接和外连接
SAP ECC连接SAP PI系统配置
Two threads print odd and even numbers interactively
ABAP 实现发布RESTful服务供外部调用示例
3.排序语句
手游性能优化
Reflect on the limitations of event bus and the design and implementation of communication mechanism in component development process
npm 安装踩坑
NPM installation stepping pit
安装配置淘宝镜像npm(cnpm)
new的实现