This message was posted on behalf of Intel Corporation1 of 1 people found this helpful
I would love to help you with your issue.
I think that you should run the command using the save flag:
npm install express --save
If you don't use this flag you will install you won't add it to the dependencies.
Personally, I recommend you to copy your code to the Edison and install express and run the code in the same directory, not in the SDcard.
You can also check this guide for a similar example: https://medium.com/@monkeytypewritr/control-your-intel-edison-in-realtime-with-websockets-f16e49b2b2c8#.pmk0001cf
I hope you find this helpful.
Ok, the problem is now solved, But I still put my code in the sd card. It run perfectly. It's so strange that the "node_module" directory is not on the SDcard but the code still work!
Instead of using --save flag, I use: sudo npm install express --g.