无法运行npm命令“错误:命令失败: npm运行启动”

无法运行npm命令“错误:命令失败: npm运行启动”

我试图在我的M1 MacBook上运行一个npx命令,但是我一直收到相同的错误。我已经安装了node.js和npm,以便能够运行以下命令:

npx @mondaydotcomorg/monday-cli scaffold run ./ quickstart-react

但是,当我运行这个命令时,输出是:

代码语言:javascript运行复制> Repository was downloaded successfully

> Copying the directory

> Installing packages. It can take a few moments

> Node modules were installed successfully

> Running the project

Error: Command failed: npm run start

at ChildProcess.exithandler (node:child_process:389:12)

at ChildProcess.emit (node:events:513:28)

at maybeClose (node:internal/child_process:1091:16)

at Socket. (node:internal/child_process:449:11)

at Socket.emit (node:events:513:28)

at Pipe. (node:net:757:14) {

code: 1,

killed: false,

signal: null,

cmd: 'npm run start'

}在此之前,我遇到了一个关于sh: concurrently: command not found和kill-port: command not found的问题,所以我使用npm同时安装和杀死端口,它删除了这些错误消息。但是,现在我得到了上面的输出。我再次安装了node.js,并将npm版本更新为最新版本,但没有更改。对如何解决这个问题有什么建议吗?

编辑:我发现这个链接是解决我的确切问题的方法。(https://community.monday.com/t/monday-cli-seems-not-to-work-on-apple-m1/36745)。我运行了npm install kill-port和npm upgrade,并且都正确地执行了。但是,当我试图单独运行npm run start命令时,这是我的输出:

代码语言:javascript运行复制npm ERR! Missing script: "start"

npm ERR!

npm ERR! Did you mean one of these?

npm ERR! npm star # Mark your favorite packages

npm ERR! npm stars # View packages marked as favorites

npm ERR!

npm ERR! To see a list of scripts, run:

npm ERR! npm run

npm ERR! A complete log of this run can be found in:

npm ERR! /Users/mattspc/.npm/_logs/2022-07-18T21_08_52_459Z-debug-0.log我想我需要找到我的目标文件夹和cd,然后在该文件夹中运行npm run start。对如何定位有什么建议吗?

相关推荐

美国无业青年网上乞讨月入2万 一没钱就呼吁网友“捐款”
spc是哪个键
365app手机版官方

spc是哪个键

📅 08-18 👁️ 2044
高尔夫球车管理运行方案
bt365体育网址

高尔夫球车管理运行方案

📅 08-19 👁️ 5505
Linux内核
bt365体育网址

Linux内核

📅 08-23 👁️ 8434
[资源]雯雅婷手机版
beat365在线体育打不开

[资源]雯雅婷手机版

📅 06-29 👁️ 3817
饥荒蔬菜指南:种菜不疯魔的生存之道
bt365体育网址

饥荒蔬菜指南:种菜不疯魔的生存之道

📅 07-27 👁️ 4282
武侠乂问答
bt365体育网址

武侠乂问答

📅 07-18 👁️ 6927
拍拍贷最后一期不还会怎么样
bt365体育网址

拍拍贷最后一期不还会怎么样

📅 07-26 👁️ 7191
华为原装皮套笔记
bt365体育网址

华为原装皮套笔记

📅 07-26 👁️ 1339