最新消息: 电脑我帮您提供丰富的电脑知识,编程学习,软件下载,win7系统下载。

无法运行React脚本

IT培训 admin 6浏览 0评论

无法运行React脚本

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]~prestart: [email protected]
6 info lifecycle [email protected]~start: [email protected]
7 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~start: 
PATH:     /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-            bin:/Users/hassnianidrees/Desktop/projects/learny-

frontEnd / node_modules / .bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/ usr / local / bin:/ usr / bin:/ bin:/ usr / sbin:/ sbin:/ Library /苹果/ usr / bin:/库/苹果/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Library/Frameworks/Python .framework / Versions / 3.7 / bin9详细生命周期[email protected]~start:CWD:/ Users / hassnianidrees / Desktop / projects / learny-frontEnd10个愚蠢的生命周期[email protected]~start:Args:['-c','react-scripts start']11愚蠢的生命周期[email protected]~start:返回:代码:1信号:空12信息生命周期[email protected]~start:无法执行启动脚本13详细堆栈错误:[email protected]开始:react-scripts start13详细堆栈退出状态1EventEmitter的13个详细堆栈。 (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)EventEmitter.emit的13个详细堆栈(events.js:198:13)ChildProcess上的13个详细堆栈。 (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)ChildProcess.emit的13个详细堆栈(events.js:198:13)13个详细堆栈可能在mayClose(internal / child_process.js:982:16)Process.ChildProcess._handle.onexit上的13个详细堆栈(internal / child_process.js:259:5)14详细的pkgid [email protected]详细的cwd / Users / hassnianidrees / Desktop / projects / learny-frontEnd16详细的达尔文19.0.017详细argv“ / usr / local / bin / node”“ / usr / local / bin / npm”“开始”18个详细节点v10.16.319详细npm v6.12.020个错误代码ELIFECYCLE21错误errno 122错误[email protected]开始:react-scripts start22错误退出状态123错误在[email protected]启动脚本处失败。23错误这可能不是npm的问题。上面可能还有其他日志记录输出。24详细出口[1,true]

T正在尝试安装此项目,但我收到此错误,我很确定该项目可以正常运行,但当我提交提交后,它就可以正常工作。

回答如下:

尝试使用YARN软件包管理器。

纱线安装步骤-Link

然后使用它安装软件包

无法运行React脚本

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]~prestart: [email protected]
6 info lifecycle [email protected]~start: [email protected]
7 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~start: 
PATH:     /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-            bin:/Users/hassnianidrees/Desktop/projects/learny-

frontEnd / node_modules / .bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/ usr / local / bin:/ usr / bin:/ bin:/ usr / sbin:/ sbin:/ Library /苹果/ usr / bin:/库/苹果/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Library/Frameworks/Python .framework / Versions / 3.7 / bin9详细生命周期[email protected]~start:CWD:/ Users / hassnianidrees / Desktop / projects / learny-frontEnd10个愚蠢的生命周期[email protected]~start:Args:['-c','react-scripts start']11愚蠢的生命周期[email protected]~start:返回:代码:1信号:空12信息生命周期[email protected]~start:无法执行启动脚本13详细堆栈错误:[email protected]开始:react-scripts start13详细堆栈退出状态1EventEmitter的13个详细堆栈。 (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)EventEmitter.emit的13个详细堆栈(events.js:198:13)ChildProcess上的13个详细堆栈。 (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)ChildProcess.emit的13个详细堆栈(events.js:198:13)13个详细堆栈可能在mayClose(internal / child_process.js:982:16)Process.ChildProcess._handle.onexit上的13个详细堆栈(internal / child_process.js:259:5)14详细的pkgid [email protected]详细的cwd / Users / hassnianidrees / Desktop / projects / learny-frontEnd16详细的达尔文19.0.017详细argv“ / usr / local / bin / node”“ / usr / local / bin / npm”“开始”18个详细节点v10.16.319详细npm v6.12.020个错误代码ELIFECYCLE21错误errno 122错误[email protected]开始:react-scripts start22错误退出状态123错误在[email protected]启动脚本处失败。23错误这可能不是npm的问题。上面可能还有其他日志记录输出。24详细出口[1,true]

T正在尝试安装此项目,但我收到此错误,我很确定该项目可以正常运行,但当我提交提交后,它就可以正常工作。

回答如下:

尝试使用YARN软件包管理器。

纱线安装步骤-Link

然后使用它安装软件包

与本文相关的文章

发布评论

评论列表 (0)

  1. 暂无评论