Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install gulp in nodejs

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report