【问题标题】:Nuxt - wall of errors when installing SassNuxt - 安装 Sass 时的错误墙
【发布时间】:2021-09-09 11:48:43
【问题描述】:

我对基于 NPM/CMD 的开发不是很有信心,我正在尝试将 Sass 添加到 Nuxt 安装中。

根据 Sass 文档,我是通过

npm install --save-dev node-sass sass-loader

但是当我通过yarn dev 重新启动我的 Nuxt 服务器时,我得到了这堵错误墙,这意味着很少。然后我通过

卸载了Sass
npm uninstall node-sass sass-loader

...我可以再次启动我的 Nuxt 服务器而不会出现问题。到底发生了什么?

ERROR  Failed to compile with 64 errors

These dependencies were not found:

* core-js/modules/es6.array.filter.js in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js and 1 other
* core-js/modules/es6.array.find.js in ./.nuxt/client.js
* core-js/modules/es6.array.from.js in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js and 1 other
* core-js/modules/es6.array.iterator.js in ./.nuxt/client.js
* core-js/modules/es6.array.map.js in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js and 1 other
* core-js/modules/es6.array.slice.js in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js and 1 other
* core-js/modules/es6.date.to-string.js in ./.nuxt/utils.js, ./.nuxt/components/nuxt.js and 1 other
* core-js/modules/es6.function.name.js in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js and 1 other
* core-js/modules/es6.object.assign.js in ./.nuxt/client.js
* core-js/modules/es6.object.get-own-property-descriptor.js in ./.nuxt/index.js, ./node_modules/ufo/dist/index.mjs
* core-js/modules/es6.object.keys.js in ./.nuxt/client.js, ./.nuxt/components/utils.js and 1 other
* core-js/modules/es6.object.to-string.js in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js and 2 others
* core-js/modules/es6.promise.js in ./.nuxt/client.js
* core-js/modules/es6.regexp.constructor.js in ./.nuxt/utils.js
* core-js/modules/es6.regexp.match.js in ./node_modules/ufo/dist/index.mjs
* core-js/modules/es6.regexp.replace.js in ./.nuxt/index.js, ./.nuxt/components/nuxt.js and 1 other
* core-js/modules/es6.regexp.search.js in ./.nuxt/utils.js, ./node_modules/ufo/dist/index.mjs
* core-js/modules/es6.regexp.split.js in ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib??vue-loader-options!./.nuxt/components/nuxt-build-indicator.vue?vue&type=script&lang=js&, ./node_modules/ufo/dist/index.mjs
* core-js/modules/es6.regexp.to-string.js in ./.nuxt/utils.js, ./.nuxt/components/nuxt.js and 1 other
* core-js/modules/es6.string.ends-with.js in ./node_modules/ufo/dist/index.mjs
* core-js/modules/es6.string.includes.js in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js
* core-js/modules/es6.string.iterator.js in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js and 1 other
* core-js/modules/web.dom.iterable.js in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js and 1 other
errors

To install them, you can run: npm install --save core-js/modules/es6.array.filter.js core-js/modules/es6.array.find.js core-js/modules/es6.array.from.js core-js/modules/es6.array.iterator.js core-jerrors 12:15:27  s/modules/es6.array.map.js core-js/modules/es6.array.slice.js core-js/modules/es6.date.to-string.js core-js/modules/es6.function.name.js core-js/modules/es6.object.assign.js core-js/modules/es6.objerrors 12:15:27  ect.get-own-property-descriptor.js core-js/modules/es6.object.keys.js core-js/modules/es6.object.to-string.js core-js/modules/es6.promise.js core-js/modules/es6.regexp.constructor.js core-js/moduleerrors 12:15:27  s/es6.regexp.match.js core-js/modules/es6.regexp.replace.js core-js/modules/es6.regexp.search.js core-js/modules/es6.regexp.split.js core-js/modules/es6.regexp.to-string.js core-js/modules/es6.strierrors 12:15:27  ng.ends-with.js core-js/modules/es6.string.includes.js core-js/modules/es6.string.iterator.js core-js/modules/es6.string.repeat.js core-js/modules/es6.string.starts-with.js core-js/modules/es6.symberrors 12:15:27  ol.js core-js/modules/es7.array.includes.js core-js/modules/es7.object.entries.js core-js/modules/es7.object.get-own-property-descriptors.js core-js/modules/es7.promise.finally.js core-js/modules/ws/modules/es6.arreb.dom.iterable.js
rty-descriptor.js
i Waiting for file changes
es6.regexp.re
       core-js/modul
i Memory usage: 809 MB (RSS: 931 MB)
ct.entries.js cor
i Listening on: http://localhost:3000/

 WARN  Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\DumpStack.log.tmp'

【问题讨论】:

  • 那么,@fevid 回答了你的问题吗?

标签: node.js npm sass nuxt.js


【解决方案1】:

尝试安装nuxt js文档here

npm install --save-dev sass sass-loader@10 fibers

【讨论】:

  • 这通常是因为 Webpack 版本(v4 vs v5),或 postcss 或类似的。
猜你喜欢
  • 2018-04-27
  • 2017-04-18
  • 2015-02-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-05-27
  • 2015-10-05
  • 2014-05-21
相关资源
最近更新 更多