Ошибка: не удается найти модуль плагина "gatsby -mark-images" в папке node_modules? - PullRequest
0 голосов
/ 11 февраля 2020

Когда я пытаюсь запустить gatsby develop:

Я получу эту ошибку:

error UNHANDLED REJECTION


  Error: Unable to find plugin "gatsby-remark-relative-images"

  - load-plugins.js:96 resolvePlugin
    [antonios-blog]/[gatsby]/dist/bootstrap/load-plugins.js:96:11

  - load-plugins.js:118 processPlugin
    [antonios-blog]/[gatsby]/dist/bootstrap/load-plugins.js:118:26

  - load-plugins.js:130 
    [antonios-blog]/[gatsby]/dist/bootstrap/load-plugins.js:130:35

  - Array.forEach

  - load-plugins.js:129 processPlugin
    [antonios-blog]/[gatsby]/dist/bootstrap/load-plugins.js:129:40

  - load-plugins.js:168 
    [antonios-blog]/[gatsby]/dist/bootstrap/load-plugins.js:168:28

  - Array.forEach

  - load-plugins.js:167 _callee$
    [antonios-blog]/[gatsby]/dist/bootstrap/load-plugins.js:167:28

  - index.js:122 _callee$
    [antonios-blog]/[gatsby]/dist/bootstrap/index.js:122:20

И когда я установлю gatsby-remark-relative-images, процесс удалит gatsby-remark-images ???

Это мой журнал из моей папки .npm:

0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli   '/Users/antonio-pavicevac-ortiz/.nvm/versions/node/v12.15.0/bin/node',
1 verbose cli   '/Users/antonio-pavicevac-ortiz/.nvm/versions/node/v12.15.0/bin/npm',
1 verbose cli   'run',
1 verbose cli   'develop'
1 verbose cli ]
2 info using npm@6.13.7
3 info using node@v12.15.0
4 verbose run-script [ 'predevelop', 'develop', 'postdevelop' ]
5 info lifecycle gatsby-starter-casper@1.0.3~predevelop: gatsby-starter-casper@1.0.3
6 info lifecycle gatsby-starter-casper@1.0.3~develop: gatsby-starter-casper@1.0.3
7 verbose lifecycle gatsby-starter-casper@1.0.3~develop: unsafe-perm in lifecycle true
8 verbose lifecycle gatsby-starter-casper@1.0.3~develop: PATH: /Users/antonio-pavicevac-ortiz/.nvm/versions/node/v12.15.0/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/antonio-pavicevac-ortiz/Dropbox/developer_folder/antonios-blog/node_modules/.bin:/usr/local/opt/icu4c/sbin:/usr/local/opt/icu4c/bin:/Users/antonio-pavicevac-ortiz/.yarn/bin:/Users/antonio-pavicevac-ortiz/.nvm/versions/node/v12.15.0/bin:/Users/antonio-pavicevac-ortiz/.rbenv/shims:/Users/antonio-pavicevac-ortiz/.node/bin:/Users/antonio-pavicevac-ortiz/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/antonio-pavicevac-ortiz/.rbenv/shims:/Users/antonio-pavicevac-ortiz/bin:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/Applications/Postgres.app/Contents/Versions/latest/bin:./node_moduels/.bin:/usr/local/mongodb/bin
9 verbose lifecycle gatsby-starter-casper@1.0.3~develop: CWD: /Users/antonio-pavicevac-ortiz/Dropbox/developer_folder/antonios-blog
10 silly lifecycle gatsby-starter-casper@1.0.3~develop: Args: [ '-c', 'gatsby develop' ]
11 silly lifecycle gatsby-starter-casper@1.0.3~develop: Returned: code: 1  signal: null
12 info lifecycle gatsby-starter-casper@1.0.3~develop: Failed to exec develop script
13 verbose stack Error: gatsby-starter-casper@1.0.3 develop: `gatsby develop`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/Users/antonio-pavicevac-ortiz/.nvm/versions/node/v12.15.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack     at EventEmitter.emit (events.js:223:5)
13 verbose stack     at ChildProcess.<anonymous> (/Users/antonio-pavicevac-ortiz/.nvm/versions/node/v12.15.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:223:5)
13 verbose stack     at maybeClose (internal/child_process.js:1021:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
14 verbose pkgid gatsby-starter-casper@1.0.3
15 verbose cwd /Users/antonio-pavicevac-ortiz/Dropbox/developer_folder/antonios-blog
16 verbose Darwin 18.6.0
17 verbose argv "/Users/antonio-pavicevac-ortiz/.nvm/versions/node/v12.15.0/bin/node" "/Users/antonio-pavicevac-ortiz/.nvm/versions/node/v12.15.0/bin/npm" "run" "develop"
18 verbose node v12.15.0
19 verbose npm  v6.13.7
20 error code ELIFECYCLE
21 error errno 1
22 error gatsby-starter-casper@1.0.3 develop: `gatsby develop`
22 error Exit status 1
23 error Failed at the gatsby-starter-casper@1.0.3 develop script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

Я пытался удалить node_modules безрезультатно.

Любая помощь будет признательна !

...