【问题标题】:Can't install node-sass using npm无法使用 npm 安装 node-sass
【发布时间】:2022-10-06 02:25:10
【问题描述】:

我正在尝试安装 SASS 编译器 node-sass,它将 SCSS 代码编译成 CSS 代码。我正在尝试观看在线课程,做同样的事情但遇到一些错误。

npm init --yes : creates a json file


npm install node-sass : This command cause the error below

我尝试了很多事情来解决并搜索了几个小时,但我无法弄清楚如何让 node-sass 运行。

  • 看起来你有一些 npm 包要更新,修复报告中的错误,应该会正确。 TLS 错误通常发生在 Web 服务器上,您是在本地计算机上还是在远程计算机上更新?

标签: css node.js json sass


【解决方案1】:

node-sass 已弃用且不支持节点 18。将其替换为 sass

npm uninstall node-sass
npm install sass

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-09-08
    • 2019-03-16
    • 2014-11-19
    • 2018-08-23
    • 1970-01-01
    • 1970-01-01
    • 2018-03-29
    相关资源
    最近更新 更多