-1
Somebody please help me solve this problem?
C:\Users\teamc\Desktop\Electron>npm i asar --save-dev
npm ERR! file C:\Users\teamc\Desktop\Electron\package.json
npm ERR! code EJSONPARSE
npm ERR! JSON.parse Failed to parse json
npm ERR! JSON.parse Unexpected token { in JSON at position 1 while parsing near '{{
npm ERR! JSON.parse "name": "hsecteam"...'
npm ERR! JSON.parse Failed to parse package.json data.
npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.
My package.json :
{{
"name": "hsecteam",
"version": "0.0.1",
"description": "Sem descrição",
"main": "index.js",
"scripts": {
"start": "electron index.html"
"package": "",
"build": "electron-packager . YoutubeTutorial"
},
"author": "Gustavo Oliveira",
"license": "MIT",
"dependencies": {
"electron": "^4.1.4"
},
"devDependencies": {
"electron-packager": "^13.1.1"
}
}
Note: I have tried the command
# npm cache clean
I did it, it helped me a lot! However, when I gave the build -w the application is being compiled, however a javascript error is appearing.
– Gustavo de Oliveira
Make the mistake, sometimes I can help you.
– Victor Martins