My package.json file includes:
{
"name": "projName",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"prestart": "node aspnetcore-https",
...
Upon running npm start, I encounter the following error:
Error: Cannot find module '...\aspnetcore-https'
How can I go about installing this module?
Attempting to install it using the command:
npm install aspnetcore-https
Results in the following error:
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/aspnetcore-https - Not found
It seems that I have this line in the package.json file because I copied it from a Visual Studio Angular Typescript project to a Typescript-only source code folder. However, shouldn't the latter project still function correctly if I install the appropriate package?
Update: The project runs successfully with npm start after removing the line:
"prestart": "node aspnetcore-https",
But I'm curious to know why I'm unable to install this module.