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 node-sass offline

2025-01-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

How to install node-sass offline, for this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.

1. Check the server's node version "scripts": {

"preinstall": "node-p\" [process.platform, process.arch, process.versions.modules] .join ('-')\ ""

}

Configure preinstall to view the server's node version information

You can see that the version information is: linux-64x-57.

two。 Download node-sass

Then go to Github to download the node-sass version of the object at https://github.com/sass/node-sass/releases

3. Configure offline information

Download the corresponding node and put it in the front-end project:

Create a new lib folder under the project Reagan directory

Copy the downloaded linux-x64-57_binding.node to lib

Configure the offline configuration of sass in package.json

"nodeSassConfig": {

BinaryPath: ". / lib/linux-x64-57_binding.node"

}

This article participates in the "OSC Source Program". You are welcome to join us and share it.

This is the answer to the question about how to install node-sass offline. I hope the above content can be of some help to you. If you still have a lot of doubts to solve, you can follow the industry information channel to learn more about it.

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

Internet Technology

Wechat

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

12
Report