Segui os passos deste exercício mas encontrei um erro ao adicionar compile: tsc
{
"name": "alurabank",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"compile": "tsc"
},
"author": "",
"license": "ISC",
"devDependencies": {
"typescript": "^2.3.2"
}
}
Ao executar no terminal apareceu este erro:
Executing task: npm run compile <
npm ERR! file /opt/lampp/htdocs/01-alurabank/alurabank/package.json npm ERR! code EJSONPARSE npm ERR! JSON.parse Failed to parse json npm ERR! JSON.parse Unexpected string in JSON at position 167 while parsing '{ npm ERR! JSON.parse "name": "alurabank", npm ERR! JSON.parse "version": "1' npm ERR! JSON.parse Failed to parse package.json data. npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript. O processo terminal encerrado com código de saída: 1
Meu projeto completo: https://github.com/GrasielaMach14/alurabank.git