API-Portal icon indicating copy to clipboard operation
API-Portal copied to clipboard

Cannot run local

Open AndersLindPedersen opened this issue 4 years ago • 4 comments
trafficstars

When trying to run the API-Portal locally, I am getting the following error:

image

AndersLindPedersen avatar Apr 10 '21 07:04 AndersLindPedersen

Hi @AndersLindPedersen, thank you for reporting the issue, we'll fix that. However, it should not really be blocking the work of the portal.

azaslonov avatar Apr 13 '21 00:04 azaslonov

Hi @azaslonov - nope not blocked by this, just a heads-up. :)

AndersLindPedersen avatar Apr 13 '21 11:04 AndersLindPedersen

Ran locally as mentioned in the documentation : https://github.com/Azure/API-Portal/wiki, but getting the error:

ERROR in ./node_modules/routing-controllers/esm2015/ActionParameterHandler.js Module not found: Error: Can't resolve 'class-validator' in '/Users/sudheerkumar/Documents/DAC/Code/GitHub/API-Portal/catalog/node_modules/routing-controllers/esm2015' @ ./node_modules/routing-controllers/esm2015/ActionParameterHandler.js 2:0-63 200:19-27 @ ./node_modules/routing-controllers/esm2015/RoutingControllers.js @ ./node_modules/routing-controllers/esm2015/index.js @ ./src/startup.host.ts @ multi ./src/startup.host.ts

Node version : 14.17.4

cvsudheer108 avatar Feb 03 '22 11:02 cvsudheer108

@cvsudheer108, I just tried to repro with fresh bit from scratch, but it works fine for me. You did npm install before running the project, right?

azaslonov avatar Feb 03 '22 16:02 azaslonov