当前位置:网站首页>Vscode netless environment rapid migration development environment (VIP collection version)
Vscode netless environment rapid migration development environment (VIP collection version)
2022-06-24 21:45:00 【Teacher Tony】
Catalog
One 、Node.js Installation and environment configuration
b、 Download from the official website
2、 Configure global dependent package path
b、 Modify the global dependency package download path
3、 Environment variable configuration
b、 Configure system environment variables path route
Two 、VSCode Plug in package migration and specified location
1、VSCode Plug in default location
2、 Appoint VSCode Plug in location
3、 ... and 、VSCode Dependent package migration
One 、Node.js Installation and environment configuration
1、 Download and install
a、 brief introduction
Node.js It's running on the server side JavaScript. Node.js It's based on Chrome V8 Engine JavaScript Running environment . Node.js An event driver is used 、 Non-blocking type I/O Model of , Make it lightweight and efficient . Node.js Package manager npm, Is the world's largest open source repository ecosystem .b、 Official website download
Open the official website link , download Node.js Installation package , When selected here 64 Bit msi Installation package
c、 install
The default path is selected here
New version of the Node.js I have brought with me npm, install Node.js Will be installed together , npm The function of is to Node.js Dependent packages for management
After installation, it is shown in the figure
dos Window type
As illustrated in the figure node.js and npm Installed successfully
2、 Configure global dependent package path
node.js and npm After successful installation , The preparatory work has already been done
a、 Default package path
Just download a global package ,
npm install -g vueThe following will appear node_modules Folder ,
The default storage path of this package is C:\Users\Administrator\AppData\Roaming\npm\node_modules Next ,
Can pass CMD Command view
npm root -g
b、 Modify the global dependency package download path
Custom storage directory , stay node Create two new folders under the installation directory
node_global Global package download and storage
node_cache node cache1) Command to modify the default path
npm config set prefix "C:\Program Files\nodejs\node_global"npm config set cache "C:\Program Files\nodejs\node_cache"
2) Configuration file modification
\npm\.npmrcfileprefix =C:\node\node_global cache = C:\node\node_cacheDownload a global package
npm install -g vueSuccessfully appear in the new configured path
3、 Environment variable configuration
a、 Configure domestic image
download npm The package is downloaded from a foreign server , It's very slow in China , It usually points to Taobao
npm config set registry https://registry.npm.taobao.orgInstall one globally
vue-cliThe scaffoldnpm install @vue/cli -gThe speed increase is quite obvious
b、 Configure system environment variables path route
Just download a few packages to test
npm install @vue/cli -g npm install express -g npm install webpack -g npm install typings -gsuccess
Two 、VSCode Plug in package migration and specified location
1、VSCode Plug in default location
Sometimes it is troublesome for computers to download plug-ins without external network environment , Therefore, it is much more convenient to migrate ready-made plug-ins directly , Find the default location of the plug-in , Just pack itC:\Users\ user name \.vscode\extensions
2、 Appoint VSCode Plug in location
Sometimes I don't want to install in C disc , Because it's gone when you reinstall the system , Therefore, you can consider installing it in the software installation path , First create a folder extensions
double-click VSCode Shortcut icon for , start-up VSCode , Load the plug-in under the specified path , Then the installed plug-ins will be placed in the specified directory
3、 ... and 、VSCode Dependent package migration
Copy the dependent files of the installed machine and package them to the new machine
Four 、VSCode common problem
Whether the project is migrated or an error is reported when the project is started
1、 Check node.js edition , bring into correspondence with
2、 Check the error prompt , Is it a lack of dependent packages
3、xx
Please like it , Form good habits !
doubt 、 communication 、 Please leave a message !
边栏推荐
- Blender FAQs
- 基于STM32的物联网下智能化养鱼鱼缸控制控制系统
- 福建省发改委福州市营商办莅临育润大健康事业部指导视察工作
- leetcode-201_2021_10_17
- 66 pitfalls in go programming language: pitfalls and common errors of golang developers
- Sslhandshakeexception: no subject alternative names present - sslhandshakeexception: no subject alternative names present
- 188. the best time to buy and sell stocks IV
- 【吴恩达笔记】卷积神经网络
- memcached全面剖析–2. 理解memcached的內存存儲
- Fuzhou business office of Fujian development and Reform Commission visited the health department of Yurun university to guide and inspect the work
猜你喜欢

【论】A deep-learning model for urban traffic flow prediction with traffic events mined from twitter

Pattern recognition - 1 Bayesian decision theory_ P1

Introduce the overall process of bootloader, PM, kernel and system startup

Tdengine can read and write through dataX

Intelligent fish tank control system based on STM32 under Internet of things
![[camera Foundation (II)] camera driving principle and Development & v4l2 subsystem driving architecture](/img/b5/23e3aed317ca262ebd8ff4579a41a9.png)
[camera Foundation (II)] camera driving principle and Development & v4l2 subsystem driving architecture

leetcode-201_2021_10_17

Pattern recognition - 9 Decision tree

福建省发改委福州市营商办莅临育润大健康事业部指导视察工作

Memcached full profiling – 1 Fundamentals of memcached
随机推荐
Li Kou daily question - day 25 -496 Next larger element I
66 pitfalls in go programming language: pitfalls and common errors of golang developers
how to install clustershell
Call process of package receiving function
Fuzhou business office of Fujian development and Reform Commission visited the health department of Yurun university to guide and inspect the work
Auto. JS to realize automatic unlocking screen
Memcached comprehensive analysis – 2 Understand memcached memory storage
how to install clustershell
PKI notes
图的邻接表存储 数组实现
01---两列波在相遇处发生干涉的条件
Please open online PDF carefully
HCIA assessment
leetcode_1470_2021.10.12
Mysql优化查询速度
Dynamic routing protocol rip, OSPF
EditText 控制软键盘出现 搜索
【产品设计研发协作工具】上海道宁为您提供蓝湖介绍、下载、试用、教程
Bld3 getting started UI
Failed to open after installing Charles without any prompt















