lundi 12 avril 2021

Compiling nodeJs project on windows

i'm developing a nodeJs application and i'm new with node, since I need to use the GOF design patterns I am creating the typescript classes first and then I need to compile them in order to generate the equivalent Javascript code. On linux a friend of mine that share a project with me uses commands on this script

"scripts": {
   "test": "npm run com && npm run exe",
   "com": "./node_modules/typescript/bin/tsc",
   "exe": "node dist/server.js"
 },

but in my laptop with windows 10 does not work if i call the command npm run com && npm run exe...does anyone have suggestions on how to compile? My project on my pc is under E:\Università\Specialistica\PrimoAnno\IngegneriaSoftware\Progetto-Software-Engineering

Thanks to all :-)

Aucun commentaire:

Enregistrer un commentaire