【问题标题】:Oro CRM - Cann't istall node-sass VersionOro CRM - 无法安装 node-sass 版本
【发布时间】:2020-12-06 16:01:25
【问题描述】:

我收到以下错误:

 Cannot download "https://github.com/sass/node-sass/releases/download/v4.12.0/linux-x64-83_binding.node":
  HTTP error 404 Not Found
  Hint: If github.com is not accessible in your location
        try setting a proxy via HTTP_PROXY, e.g.
        export HTTP_PROXY=http://example.com:1234

  or configure npm proxy via
        npm config set proxy http://example.com:8080

不,我不使用代理。 安装了以下依赖项:

  gyp info using node-gyp@3.8.0
  gyp info using node@14.6.0 | linux | x64

这是我从 composer info | 得到的信息grep oro/:

oro/calendar-bundle                  4.1.5      Calendar bundle for OroPlatform-based applications.
oro/commerce                         4.1.6      OroCommerce - an open-source Business to Business Commerce ap...
oro/commerce-crm                     4.1.3      OroCRM integration for OroCommerce
oro/crm                              4.1.6      OroCRM
oro/crm-call-bundle                  4.1.5      Oro Call Bundle
oro/crm-dotmailer                    4.1.5      Oro Dotmailer integration
oro/crm-hangouts-call-bundle         4.1.1      Oro Google Hangouts integration
oro/crm-magento-embedded-contact-us  4.1.2      OroCRM Magento Embedded Contact Us package
oro/crm-task-bundle                  4.1.4      Oro Task Bundle
oro/crm-zendesk                      4.1.3      OroCRM Zendesk Integration
oro/customer-portal                  4.1.6
oro/doctrine-extensions              1.2.2      Doctrine Extensions for MySQL and PostgreSQL.
oro/marketing                        4.1.4      Oro Marketing Bundles
oro/oauth2-server                    4.1.4      Oro OAuth 2.0 authorization and resource server for BAP
oro/platform                         4.1.6      Business Application Platform (BAP)
oro/platform-serialised-fields       4.1.2      OroPlatform Serialized Fields
oro/redis-config                     4.1.2      OroRedisConfigBundle

我尝试在浏览器中打开上述链接并收到 404 错误。但是,如果我尝试安装最新版本,则可以。 回答我的问题,我可以升级这个包的版本吗?或者有其他解决方案可以解决这个问题吗?

提前谢谢你:)

【问题讨论】:

    标签: orocrm orocommerce


    【解决方案1】:

    是的,你可以升级,但目前在 OroCRM 项目中升级 node-sass 并不容易。

    您必须修补 vendor/oro/platform/build/package.json 文件。该团队将在进一步的 4.1 版本中对此进行简化。

    【讨论】:

    • 能否解释一下为什么升级node-sass不容易?我已经适配了package.json,没有报错了,但是安装好像挂了。
    • > 但安装似乎挂断了。当您使用 root 用户或 sudo 运行命令时,可能会发生这种情况。更改 package.json 后也尝试删除 node_modules。
    • > 为什么升级node-sass不容易? - 我的意思是,您必须修补供应商文件,这不是自定义应用程序的首选方式。
    猜你喜欢
    • 1970-01-01
    • 2017-03-27
    • 2018-03-29
    • 2018-04-02
    • 2019-09-08
    • 2019-03-16
    相关资源
    最近更新 更多