当前位置:网站首页>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 !
边栏推荐
- Understanding openstack network
- Introduce the overall process of bootloader, PM, kernel and system startup
- [cloud native learning notes] deploy applications through yaml files
- 力扣每日一题-第26天-496.下一个更大元素Ⅰ
- memcached全面剖析–3. memcached的删除机制和发展方向
- 03---增反膜
- leetcode-201_2021_10_17
- Remember the frequently forgotten problem of continuously reading pictures -%04d
- Installing Oracle without graphical interface in virtual machine centos7 (nanny level installation)
- CondaValueError: The target prefix is the base prefix. Aborting.
猜你喜欢
随机推荐
leetcode1720_2021-10-14
Blender's landscape
Advanced secret of xtransfer technology newcomers: the treasure you can't miss mentor
VirtualBox virtual machine installation win10 Enterprise Edition
Docking of arkit and character creator animation curves
Handwritten RPC the next day -- review of some knowledge
Return of missing persons
socket(2)
When to send the update windows message
Bld3 getting started UI
【吴恩达笔记】机器学习基础
Failed to open after installing Charles without any prompt
Multi view function in blender
Blender FAQs
03---增反膜
Sslhandshakeexception: no subject alternative names present - sslhandshakeexception: no subject alternative names present
[camera Foundation (II)] camera driving principle and Development & v4l2 subsystem driving architecture
Shengzhe technology AI intelligent drowning prevention service launched
[camera Foundation (I)] working principle and overall structure of camera
EditText controls the soft keyboard to search

























