【问题标题】:I got error message 'not finished load plugins'我收到错误消息“未完成加载插件”
【发布时间】:2020-07-20 12:49:06
【问题描述】:

当我尝试使用 [npm run develop] 加载本地服务器时,我收到错误消息“未完成加载插件”

我该怎么办?

这是我收到的错误消息:

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' ]

2 使用 npm@6.14.2 的信息

3 使用 node@v10.16.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: unsafe-perm in lifecycle 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-网站/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 develop' ]

11 愚蠢的生命周期 Henisis@0.2.0~develop: Returned: code: 1 signal: null

12 info生命周期 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 (events.js:198:13) 的 13 个详细堆栈

ChildProcess 的 13 个详细堆栈。 (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)

ChildProcess.emit (events.js:198:13) 的 13 个详细堆栈

可能关闭的 13 个详细堆栈 (internal/child_process.js:982:16)

Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) 的 13 个详细堆栈

14 详细 pkgid Henisis@0.2.0

15 详细 cwd /Users/mingyeongso/Documents/GitHub/henesis-website

16 详细的 Darwin 18.7.0

17 详细 argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "develop"

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, true ]

【问题讨论】:

    标签: npm


    【解决方案1】:

    我通过这个解决了这个错误:

    npm cache clean --force
    delete package-lock.json file
    npm install
    

    【讨论】:

      猜你喜欢
      • 2021-08-21
      • 1970-01-01
      • 1970-01-01
      • 2022-11-19
      • 1970-01-01
      • 2021-06-13
      • 1970-01-01
      • 2016-05-08
      • 1970-01-01
      相关资源
      最近更新 更多