awesome-aricawesome-aric
文档
GitHub
文档
GitHub
  • 介绍
  • Visual Studio Code

    • vscode常用配置
  • Git

    • 安装
    • 常用命令
    • 合并指定commit到指定分支
    • GitHub
  • Python

    • python
    • pip
    • 虚拟环境
    • django+celery+redis简单用法
    • Awesome Python (个人向)
  • .Net

    • EF
    • path
  • JavaScript

    • js
    • 使用axios传集合型参数
    • layui的table加载数据时默认选中
  • Linux

    • nginx常用命令
  • Docker

    • Docker常用命令
    • Docker安装
    • Docker 部署项目(简易版)
  • 踩坑记录

    • 软件包管理器
    • PowerShell
    • Pycharm

软件包管理器

npm&yarn

npm还原包失败

  • 使用“科学上网”
  • 使用yarn
  • 使用pnpm

Module build failed: Error: Cannot find module 'node-sass'

  • 运行命令yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g

找不到node-sass/vendor

  1. 使用以下命令查看对应的版本node -p "[process.platform, process.arch, process.versions.modules].join('-')"。
  2. 去https://github.com/sass/node-sass/releases 下载相应版本的 xxx_binding.node 文件。
  3. 将该文件重命名为 binding.node 后放入到 node-sass\vendor\win32-x64-57 目录下即可(win32-x64-83为步骤1查看到的版本)。

编辑此页
上次更新: 2023/11/6 17:49
贡献者: aric
Next
PowerShell