当我尝试使用[npm run development]加载本地服务器时,出现错误消息“未完成加载插件”
我该怎么办?
这是我收到的错误消息:
not finished load plugins - 0.975s
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! Henisis@0.2.0 develop: `GATSBY_ENV=staging gatsby develop`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the Henisis@0.2.0 develop script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/mingyeongso/.npm/_logs/2020-04-08T06_51_49_655Z-debug.log
mingyeongui-MacBookPro:henesis-website mingyeongso$
从调试文件:
0信息,如果以“ ok”结尾则有效
1个详细的cli ['/ usr / local / bin / node','/ usr / local / bin / npm','run','develop']
使用npm@6.14.2的2条信息
使用node@v10.16.3的3条信息
4个详细的运行脚本['predevelop','develop','postdevelop']
5个信息生命周期Henisis@0.2.0~predevelop:Henisis@0.2.0
6个信息生命周期Henisis@0.2.0~develop:Henisis@0.2.0
7个详细的生命周期Henisis@0.2.0~develop:生命周期中的不安全烫发true
8个详细的生命周期Henisis@0.2.0~develop:PATH:/ usr / local / lib / node_modules / npm / node_modules / npm-lifecycle / node-gyp-bin:/ Users / mingyeongso / Documents / GitHub / henesis- website / node_modules / .bin:/ usr / local / bin:/ usr / bin:/ bin:/ usr / sbin:/ sbin
9个详细的生命周期Henisis@0.2.0~develop:CWD:/ Users / mingyeongso / Documents / GitHub / henesis-website
10个愚蠢的生命周期Henisis@0.2.0~develop:Args:['-c','GATSBY_ENV = staging gatsby development']
11个愚蠢的生命周期Henisis@0.2.0~develop:返回:代码:1信号:空
12个信息生命周期Henisis@0.2.0~develop:无法执行开发脚本
13个详细堆栈错误:Henisis@0.2.0开发:GATSBY_ENV=staging gatsby develop
13个详细堆栈退出状态1
EventEmitter的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)
maybeClose处的13个详细堆栈(internal / child_process.js:982:16)
Process.ChildProcess._handle.onexit上的13个详细堆栈(internal / child_process.js:259:5)
14详细的pkgid Henisis@0.2.0
15详细的cwd / Users / mingyeongso / Documents / GitHub / henesis-website
16详细的达尔文18.7.0
17详细argv“ / usr / local / bin / node”“ / usr / local / bin / npm”“运行”“开发”
18个详细节点v10.16.3
19详细的npm v6.14.2
20个错误代码ELIFECYCLE
21错误errno 1
22错误Henisis@0.2.0开发:GATSBY_ENV=staging gatsby develop
22错误退出状态1
23错误Henisis@0.2.0开发脚本失败。
23错误这可能不是npm的问题。上面可能还有其他日志记录输出。
24个详细出口[1,正确]
答案 0 :(得分:0)
我通过以下方法解决了该错误:
npm cache clean --force
delete package-lock.json file
npm install