当前位置:网站首页>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
边栏推荐
- Thorough inquiry -- understanding and analysis of cocos2d source code
- Mvcc (multi version concurrency control)
- 3. Sort statement
- promise all的实现
- SAP TRANSLATE使用数据对象掩码示例
- Super classic & Programming Guide (red and blue book) - Reading Notes
- SAP PI/PO功能运行状态监控检查
- H5 case development
- instanceof的实现原理
- 11. Table and library management
猜你喜欢
随机推荐
Solutions to common problems in visualization (VII) solutions to drawing scale setting
js之排他思想及案例
[COCI] Vještica (子集dp)
2022.3.14 阿里笔试
SAP 导出Excel文件打开显示:“xxx“的文件格式和扩展名不匹配。文件可能已损坏或不安全。除非您信任其来源,否则请勿打开。是否仍要打开它?
Authorization+Token+JWT
Mobile game performance optimization
Mysql 索引
移动端布局(3D转换、动画)
int a = 1存放在哪
h5本地存储数据sessionStorage、localStorage
H5 case development
2022.3.14 Ali written examination
js之DOM学习获取元素
Understanding of STL container
反转链表练习
Mvcc (multi version concurrency control)
Preliminary configuration of OpenGL super Dictionary (freeglut, glew, gltools, GLUT)
11. Table and library management
自定义时间格式(YYYY-MM-DD HH:mm:ss 星期X)









