To my understanding, the \'npm\' knows about git, so i can use it to retrieve Node.js modules from github. So, I have created Node.js module and hosted it at github. When I
You may be using a .zip
file. NPM doesn't support it and it may throw an error. Here is what you can use: https://npmjs.org/doc/install.html#DESCRIPTION
Does your repository contain a proper package.json
file? That is required to have your repository handled as an npm module.
For those who already have a package.json file:
Just in case you didn't notice the comments below the accepted answer, you need to make sure you are inside your app folder to be able to run npm start
. It seems to be a common mistake to accidentally run npm start
from one directory above. Hope this helps.