Когда я пытаюсь создать свое приложение с помощью Parcel, я получаю эту ошибку при сборке:
? /home/volodymk/react/src/index.js: Cannot find module '@babel/plugin-proposal-class-properties' from '/home/volodymk/react/src'self.
at /home/volodymk/.npm/_npx/7672/lib/node_modules/parcel/node_modules/resolve/lib/async.js:98:35
at processDirs (/home/volodymk/.npm/_npx/7672/lib/node_modules/parcel/node_modules/resolve/lib/async.js:251:39)
at isdir (/home/volodymk/.npm/_npx/7672/lib/node_modules/parcel/node_modules/resolve/lib/async.js:258:32)
at /home/volodymk/.npm/_npx/7672/lib/node_modules/parcel/node_modules/resolve/lib/async.js:23:69
at FSReqWrap.oncomplete (fs.js:153:21)
Вот что я могу найти в журналах:
0 info it worked if it ends with ok
1 verbose cli [ '/opt/alt/alt-nodejs10/root/usr/bin/node',
1 verbose cli '/opt/alt/alt-nodejs10/root/usr/bin/npm',
1 verbose cli 'run',
1 verbose cli 'build',
1 verbose cli '--scripts-prepend-node-path' ]
2 info using npm@6.11.3
3 info using node@v10.17.0
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle pp-react@0.1.0~prebuild: pp-react@0.1.0
6 info lifecycle pp-react@0.1.0~build: pp-react@0.1.0
7 verbose lifecycle pp-react@0.1.0~build: unsafe-perm in lifecycle true
8 verbose lifecycle pp-react@0.1.0~build: PATH: /opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/npm-lifecycle/node-gyp-bin:/home/volodymk/react/node_modules/.bin:/opt/alt/alt-nodejs10/root/usr/bin:/home/volodymk/nodevenv/react/10/bin:/opt/alt/alt-nodejs10/root/usr/bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/cpanel/composer/bin:/home/volodymk/.local/bin:/home/volodymk/bin
9 verbose lifecycle pp-react@0.1.0~build: CWD: /home/volodymk/react
10 silly lifecycle pp-react@0.1.0~build: Args: [ '-c', 'npx parcel build index.html' ]
11 silly lifecycle pp-react@0.1.0~build: Returned: code: 1 signal: null
12 info lifecycle pp-react@0.1.0~build: Failed to exec build script
13 verbose stack Error: pp-react@0.1.0 build: `npx parcel build index.html`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:198:13)
13 verbose stack at ChildProcess.<anonymous> (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:198:13)
13 verbose stack at maybeClose (internal/child_process.js:982:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid pp-react@0.1.0
15 verbose cwd /home/volodymk/react
16 verbose Linux 3.10.0-962.3.2.lve1.5.25.10.el7.x86_64
17 verbose argv "/opt/alt/alt-nodejs10/root/usr/bin/node" "/opt/alt/alt-nodejs10/root/usr/bin/npm" "run" "build" "--scripts-prepend-node-path"
18 verbose node v10.17.0
19 verbose npm v6.11.3
20 error code ELIFECYCLE
21 error errno 1
22 error pp-react@0.1.0 build: `npx parcel build index.html`
22 error Exit status 1
23 error Failed at the pp-react@0.1.0 build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
I попытался переустановить модуль, но это ничего не меняет ... Я думал об удалении этих модулей, но они необходимы для нормальной работы приложения, поэтому ...