【问题标题】:npm get WARN during install Sass在安装 Sass 期间 npm 得到 WARN
【发布时间】:2021-05-31 13:06:39
【问题描述】:

在我在 cmd 中使用 npm install sass 之后 然后 cmd 显示这些错误

npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\me\package.json'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.1 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\me\package.json'
npm WARN me No description
npm WARN me No repository field.
npm WARN me No README data
npm WARN me No license field.
+ sass@1.32.8
added 15 packages from 18 contributors and audited 16 packages in 3.402s

1 package is looking for funding
  run `npm fund` for details

found 0 vulnerabilities

我不知道如何解决这些错误

【问题讨论】:

    标签: node.js npm sass


    【解决方案1】:

    这些只是关于您正在安装的软件包的 npm 警告,在您的情况下,您不必担心它们,除非某些东西不起作用。如果您愿意,可以通过运行忽略它们:

    npm install sass --silent
    

    npm docs

    【讨论】:

    • 谢谢。但是当这些警告发生时,会阻止实时将 sass 编译为 css(我使用 --watch)。
    猜你喜欢
    • 2023-01-12
    • 1970-01-01
    • 2018-08-23
    • 1970-01-01
    • 2015-08-13
    • 1970-01-01
    • 2020-06-22
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多