Bom dia Pessoal, Estou com problemas no processo de build do babel. Poderia por favor auxiliar? Abaixo o erro que esta sendo gerado:
npm run build
> client@1.0.0 build C:\Felipe_PC\Estudo\alura\4.1.frontEnd.JavaScript\3.3.js.Salvando dados localmente com IndexedDB\2.0-IndexDB com Babel\client
> babel js/app-es6 -d js/app --source-maps
SyntaxError: C:\Felipe_PC\Estudo\alura\4.1.frontEnd.JavaScript\3.3.js.Salvando dados localmente com IndexedDB\2.0-IndexDB com Babel\client\.babelrc: Error while parsing JSON - Unexpected '�' at line 1 column 2 of the JSON5 data.
Still to read: "��{\u0000\r\u0000\n\u0000 \u0000 \u0000 \u0000 \u0000\"\u0000p\u0000"
at error (C:\Felipe_PC\Estudo\alura\4.1.frontEnd.JavaScript\3.3.js.Salvando dados localmente com IndexedDB\2.0-IndexDB com Babel\client\node_modules\json5\lib\json5.js:56:25)
.log:
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'build'
1 verbose cli ]
2 info using npm@6.14.5
3 info using node@v14.4.0
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle client@1.0.0~prebuild: client@1.0.0
6 info lifecycle client@1.0.0~build: client@1.0.0
7 verbose lifecycle client@1.0.0~build: unsafe-perm in lifecycle true
8 verbose lifecycle client@1.0.0~build: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Felipe_PC\Estudo\alura\4.1.frontEnd.JavaScript\3.3.js.Salvando dados localmente com IndexedDB\2.0-IndexDB com Babel\client\node_modules\.bin;C:\app\felip\product\21c\dbhomeXE\bin;C:\Python38\Scripts\;C:\Python38\;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;c:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Java\jdk-13.0.2\bin;C:\Program Files\Java\jdk1.8.0_251\bin;C:\Program Files\apache-maven-3.6.3\bin;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\PuTTY\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Program Files\Git\cmd;C:\Users\felip\AppData\Local\Programs\git-cola\bin;C:\Users\felip\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\Java\jdk1.8.0_251;C:\Users\felip\AppData\Roaming\npm;
9 verbose lifecycle client@1.0.0~build: CWD: C:\Felipe_PC\Estudo\alura\4.1.frontEnd.JavaScript\3.3.js.Salvando dados localmente com IndexedDB\2.0-IndexDB com Babel\client
10 silly lifecycle client@1.0.0~build: Args: [ '/d /s /c', 'babel js/app-es6 -d js/app --source-maps' ]
11 silly lifecycle client@1.0.0~build: Returned: code: 1 signal: null
12 info lifecycle client@1.0.0~build: Failed to exec build script
13 verbose stack Error: client@1.0.0 build: `babel js/app-es6 -d js/app --source-maps`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:315:20)
13 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:315:20)
13 verbose stack at maybeClose (internal/child_process.js:1051:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
14 verbose pkgid client@1.0.0
15 verbose cwd C:\Felipe_PC\Estudo\alura\4.1.frontEnd.JavaScript\3.3.js.Salvando dados localmente com IndexedDB\2.0-IndexDB com Babel\client
16 verbose Windows_NT 10.0.19042
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
18 verbose node v14.4.0
19 verbose npm v6.14.5
20 error code ELIFECYCLE
21 error errno 1
22 error client@1.0.0 build: `babel js/app-es6 -d js/app --source-maps`
22 error Exit status 1
23 error Failed at the client@1.0.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 ]