error C:\javatest\ant-design-jeecg-vue\node_modules\node-sass: Command failed.

  • 查了两天,最后解决方案:
  1. 删掉:下面目录中划红线的配置文件:删掉项目中的node_modules,重新配置npm和yarn,然后执行命令就好了
  2. 
       
       
    1. 用admin权限执行:
    2. npm config set registry https: //registry.npm.taobao.org --global
    3. npm config set disturl https: //npm.taobao.org/dist --global
    4. yarn config set registry https: //registry.npm.taobao.org --global
    5. yarn config set disturl https: //npm.taobao.org/dist --global
  3. 
       
       
    1. 按照这个方法安装(先安装node.js,再安装yarn):
    2. https:/ /yarnpkg.com/zh-Hans/docs/install #windows-stable
    3. https:/ /www.jianshu.com/p /03a76b2e7e00
  4. 最后执行: yarn install
       
       
    <p>&nbsp;</p>
    </li>
    
  •  其他解决方案1:

 
 
  1. npm install node-sass@ 4.12 .0
  2. 链接地址: https://stackoverflow.com/questions/ 45801457/node-js-python- not- found- exception-due- to-node-sass- and-node-gyp

 

 

  • 其他解决方案2(对我没用)链接地址:
  1. https://learnku.com/laravel/t/7619/resolved-laravel-mix-still-try-installing-heavy-please-help-look-laoniao-thank-you 
  2. https://learnku.com/articles/5083/on-the-record-of-installing-the-node-sass-error

 

 

    GitHub 加速计划 / no / node-sass
    8.5 K
    1.33 K
    下载
    :rainbow: Node.js bindings to libsass
    最近提交(Master分支:2 个月前 )
    6081731a Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> 9 个月前
    62c0f46c Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> 9 个月前
    Logo

    旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

    更多推荐