In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces how to install gulp in nodejs. The article is very detailed and has certain reference value. Interested friends must read it!
Installation method: 1. Download and install Nodejs;2. Configure the global path of npm;3. Open the "Node.js command prompt" command line and execute the "npm install -g gulp" command to install gulp globally.
This tutorial operating environment: Windows 7 system, nodejs version 12.19.0, DELL G3 computer.
prerequisite
1. Download nodejs installation package
Go to nodejs official website to download software nodejs.org
2. install NodeJS
Window: Direct next step installation. After installation WIN+R input cmd call up DOS window, input node to see if there is interaction, if not check the system variable Path, the path configuration up. [Related recommendation: How to install nodejs in Windows environment?]
3. Configure the global path of npm
Nodejs npm path under Windows is appdata, which may not be the path we want, but can be changed to the path we specify for convenient management.
Execute the following command under cmd
npm config set cache "D:\nodejs\node_cache" npm config set prefix "D:\nodejs\node_global"
If the command doesn't work, you can go to the node_modules\npm\npmrc file in the nodejs installation directory, which stores the userconfig configuration for npm.
The amendments are as follows:
prefix = D:\nodejs\node_global cache = D:\nodejs\ node_cache install gulp
Global installation gulp
Open Node.js command prompt
Enter the command: npm install -g gulp
Then type gulp -v, if the prompt is not an internal or external command, it means that the system variable path is not configured, manually configure pasta, and the address is the address of prefix.
That's all for "nodejs how to install gulp", thanks for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.