Command failed with exit code 134: npm run generate(命令失败,退出代码134:npm运行生成)
本文介绍了命令失败,退出代码134:npm运行生成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试将我的nuxt js项目部署到netlify。安装部分工作正常,但它在生成过程中返回错误。
我尝试搜索Google,但找不到此问题的任何解决方案。
我也尝试过此命令CI= npm run generate
3:16:42 PM: $ npm run generate
3:16:43 PM: > portfolio@1.0.0 generate
3:16:43 PM: > nuxt generate
3:16:50 PM: node: ../src/coroutine.cc:134: void* find_thread_id_key(void*): Assertion `thread_id_key != 0x7777' failed.
Aborted
3:16:50 PM:
3:16:50 PM: ────────────────────────────────────────────────────────────────
3:16:50 PM: "build.command" failed
3:16:50 PM: ────────────────────────────────────────────────────────────────
3:16:50 PM:
3:16:50 PM: Error message
3:16:50 PM: Command failed with exit code 134: npm run generate
3:16:50 PM:
3:16:50 PM: Error location
3:16:50 PM: In Build command from Netlify app:
3:16:50 PM: npm run generate
3:16:50 PM:
3:16:50 PM: Resolved config
3:16:50 PM: build:
3:16:50 PM: command: npm run generate
3:16:50 PM: commandOrigin: ui
3:16:50 PM: publish: /opt/build/repo/dist
3:16:50 PM: publishOrigin: ui
3:16:50 PM: Caching artifacts
3:16:50 PM: Started saving node modules
3:16:50 PM: Finished saving node modules
3:16:50 PM: Started saving build plugins
3:16:50 PM: Finished saving build plugins
3:16:50 PM: Started saving pip cache
3:16:50 PM: Finished saving pip cache
3:16:50 PM: Started saving emacs cask dependencies
3:16:50 PM: Finished saving emacs cask dependencies
3:16:50 PM: Started saving maven dependencies
3:16:50 PM: Finished saving maven dependencies
3:16:50 PM: Started saving boot dependencies
3:16:50 PM: Finished saving boot dependencies
3:16:50 PM: Started saving rust rustup cache
3:16:50 PM: Finished saving rust rustup cache
3:16:50 PM: Started saving go dependencies
3:16:50 PM: Finished saving go dependencies
3:16:52 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
3:16:52 PM: Creating deploy upload records
3:16:52 PM: Failing build: Failed to build site
3:16:52 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2
3:16:52 PM: Finished processing build request in 1m34.230804646s
以下是Nuxt配置-
我的目标是建一个静电网站。你可能会猜到这是我的投资组合网站。我正在整理我的投资组合,以便找到一份更好的工作。
nuxt.config.js
export default {
// Target: https://go.nuxtjs.dev/config-target
target: 'static',
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
title: 'Hasibur',
htmlAttrs: {
lang: 'en'
},
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: '' },
{ name: 'format-detection', content: 'telephone=no' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
]
},
// Global CSS: https://go.nuxtjs.dev/config-css
css: [
'@/assets/scss/main.scss'
],
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [
{ src: '~/plugins/components.js', mode: 'client' },
{ src: '~/plugins/fontawesome.js', mode: 'client' },
],
// Auto import components: https://go.nuxtjs.dev/config-components
components: true,
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: [
// https://go.nuxtjs.dev/tailwindcss
'@nuxtjs/tailwindcss',
],
// Modules: https://go.nuxtjs.dev/config-modules
modules: [
// https://go.nuxtjs.dev/axios
'@nuxtjs/axios',
],
// Axios module configuration: https://go.nuxtjs.dev/config-axios
axios: {},
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {
}
}
推荐答案
我刚刚遇到了同样的问题,多亏了this question才解决了。问题似乎是fibers。
我修复它所采取的步骤:
- 卸载光纤:
npm uninstall fibers
- 删除
package-lock.json
&;node_modules/
- 重新安装软件包:
npm install
仅从package.json
中删除纤维是不够的,因为Netlify似乎仍在package-lock.json
中找到该包。
这篇关于命令失败,退出代码134:npm运行生成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
沃梦达教程
本文标题为:命令失败,退出代码134:npm运行生成


猜你喜欢
- 如何显示带有换行符的文本标签? 2022-01-01
- 为什么我的页面无法在 Github 上加载? 2022-01-01
- 从原点悬停时触发 translateY() 2022-01-01
- 是否可以将标志传递给 Gulp 以使其以不同的方式 2022-01-01
- 如何调试 CSS/Javascript 悬停问题 2022-01-01
- 如何向 ipc 渲染器发送添加回调 2022-01-01
- 为什么悬停在委托事件处理程序中不起作用? 2022-01-01
- 使用 iframe URL 的 jQuery UI 对话框 2022-01-01
- 在不使用循环的情况下查找数字数组中的一项 2022-01-01
- 我不能使用 json 使用 react 向我的 web api 发出 Post 请求 2022-01-01