I create a new workspace and import a solution. Developer goes through the process of building the solution but ultimately fails with the following console message:
‘ng’ is not recognized as an internal or external command
Developer shows the following information:
Message The requested resource [/solution/ARMTITAN/index.html] is not available
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
I verified that the index.html files does not exist in the following path:
No errors in servoy_log.txt or in the .metadata .log file.
Any ideas as to what would prevent the index.html from being created and why ‘ng’ is not recognized as a valid command? …and, why there are no errors reported?
Posting the information below for others who may be having this issue.
Johan,
Not sure why that sometimes just doesn’t work for some.
I figured out why the index.html file is not being created.
Apparently, during the build process, npm is attempting to connect to some Angular server, and if the connection fails, the index.html file is not created resulting in the following message:
‘ng’ is not recognized as an internal or external command
In our case, our network firewall was preventing the connection. npm was attempting to connect to:
kwpsd:
Apparently, during the build process, npm is attempting to connect to some Angular server, and if the connection fails, the index.html file is not created resulting in the following message:
no it is not the an angular server that we want to connect to
but just to the npm registry to get all the npm packages, not just angular but a lot of other packages like the stuff we build on top of (datepicker, bootstrap, fontawesome)
and yes for TiNG that is very important that that works, those downloads should not be blocked.