Я хочу построить фронт с npm install dev
, но получил ELIFECYCLE error
.
Как мне это сделать?
Журнал :
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\\ItComponets\\Nodejs\\node.exe',
1 verbose cli 'C:\\ItComponets\\Nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'dev'
1 verbose cli ]
2 info using npm@6.10.3
3 info using node@v12.10.0
4 verbose run-script [ 'predev', 'dev', 'postdev' ]
5 info lifecycle @~predev: @
6 info lifecycle @~dev: @
7 verbose lifecycle @~dev: unsafe-perm in lifecycle true
8 verbose lifecycle @~dev: PATH: C:\ItComponets\Nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\NeonDemon\Desktop\Project2\nag.ru\node_modules\.bin;C:\Users\NeonDemon\Desktop\Project2\nag.ru\node_modules\.bin;C:\ItComponets\PHPStorm\PhpStorm 2019.2\jbr\\bin;C:\ItComponets\PHPStorm\PhpStorm 2019.2\jbr\\bin\server;C:\Python3\Scripts\;C:\Python3\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\ItComponets\PHP;C:\ItComponets\Composer;C:\ItComponets\Symfony;C:\ItComponets\PostgeSQL\11\bin;C:\Drivers\Putty\;C:\ItComponets\Nodejs\;C:\ProgramData\chocolatey\bin;C:\Drivers\Git\cmd;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\ItComponets\Postgre\bin;C:\ItComponets\Postgre\lib;C:\Users\NeonDemon\AppData\Local\Programs\Python\Python38\Scripts\;C:\Users\NeonDemon\AppData\Local\Programs\Python\Python38\;C:\Users\NeonDemon\AppData\Local\Microsoft\WindowsApps;C:\Users\NeonDemon\AppData\Roaming\Composer\vendor\bin;C:\ItComponets\PHPStorm\PhpStorm 2019.2\bin;;C:\Users\NeonDemon\AppData\Roaming\npm;C:\ItComponets\Nodejs;
9 verbose lifecycle @~dev: CWD: C:\Users\NeonDemon\Desktop\Project2\nag.ru
10 silly lifecycle @~dev: Args: [ '/d /s /c', 'encore dev' ]
11 silly lifecycle @~dev: Returned: code: 2 signal: null
12 info lifecycle @~dev: Failed to exec dev script
13 verbose stack Error: @ dev: `encore dev`
13 verbose stack Exit status 2
13 verbose stack at EventEmitter.<anonymous> (C:\ItComponets\Nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:326:16)
13 verbose stack at EventEmitter.emit (events.js:209:13)
13 verbose stack at ChildProcess.<anonymous> (C:\ItComponets\Nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:209:13)
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 @
15 verbose cwd C:\Users\NeonDemon\Desktop\Project2\nag.ru
16 verbose Windows_NT 10.0.18362
17 verbose argv "C:\\ItComponets\\Nodejs\\node.exe" "C:\\ItComponets\\Nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev"
18 verbose node v12.10.0
19 verbose npm v6.10.3
20 error code ELIFECYCLE
21 error errno 2
22 error @ dev: `encore dev`
22 error Exit status 2
23 error Failed at the @ dev script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 2, true ]
Я пытался:
- переустановить узлы модулей,
- очистить кеш,
- открытый порт 3000