安装node-sass失败
2023-09-11 14:15:02 时间
在项目内添加一个 .npmrc 文件
sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ phantomjs_cdnurl=https://npm.taobao.org/mirrors/phantomjs/ electron_mirror=https://npm.taobao.org/mirrors/electron/ registry=https://registry.npm.taobao.org
这样使用 npm install 安装 node-sass、electron 和 phantomjs 时都能自动从淘宝源上下载,但是在使用 npm publish 的时候要把 registry 这一行给注释掉,否则就会发布到淘宝源上去了。
安装结束之后再把此文件删除就行了。
相关文章
- Docker 系列(一):Docker 概念 | 安装 | 基本使用
- Ubuntu SVN客户端安装
- 通过yum安装nginx-mysql-php-fastcgi配置LNMP
- linux安装maven报错
- Node.js 笔记(一) nodejs、npm、express安装
- node:解决npm安装下载慢的问题(node v14.17.1/npm 7.20.5)
- CentOS6.4 LVS rpm包安装及源码安装
- [Node.js] Add node.js command line to global
- [Whole Web, Node.js, PM2] Restarting your node.js app on code change using pm2
- linux(fedora 32):安装node/vue的运行环境(node v14.15.0)
- Atitti.dw cc 2015 绿色版本安装总结
- 在mac上安装cnpm一直报错!Error: EACCES: permission denied, access '/usr/local/lib/node_modules' npm ERR! { [
- 2022年最新最详细的安装Node.js以及cnpm(详细图解过程、绝对成功)
- node-exporter安装和详解-适用于物理机虚拟机的监控采集
- 在Linux系统安装 Node.js 14.17.5最简单步骤
- MetamechBook01笔记本U盘安装系统的详细步骤教学
- linux下安装node.js
- linux===Ubuntu 上安装 Node.js
- python - easy_install的安装和使用
- Node.js(一)概述、全局对象/函数、node各模块使用介绍