当前位置:网站首页>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
边栏推荐
猜你喜欢

反思 | 事件总线的局限性,组件化开发流程中通信机制的设计与实现

自定义时间格式(YYYY-MM-DD HH:mm:ss 星期X)

数据分析入门 | kaggle泰坦尼克任务(三)—>探索数据分析

页面实时显示当前时间

Visualization Road (IX) detailed explanation of arrow class

配置npm

How to judge whether a point is within a polygon (including complex polygons or a large number of polygons)

Reflect on the limitations of event bus and the design and implementation of communication mechanism in component development process

Redis connection error err auth < password > called without any password configured for the default user

canvas学习第一篇
随机推荐
3. Sort statement
SAP pi / PO rfc2restful publishing RFC interface is a restful example (proxy indirect method)
H5 case development
层次输出二叉树
Redis connection error err auth < password > called without any password configured for the default user
SAP TRANSLATE使用数据对象掩码示例
SAP PI/PO rfc2Soap 发布rfc接口为ws示例
js之节点操作,为什么要学习节点操作
面经总结2
Ogldev reading notes
安装配置淘宝镜像npm(cnpm)
异步的学习
CSDN很火的汤小洋老师全部课程总共有哪些(问号问号问号)
二叉树的深度
1. View databases and tables
2. Restricted query
Reflection on the systematic design of Android audio and video caching mechanism
SAP PI/PO功能运行状态监控检查
学会使用搜索引擎
npm 安装踩坑