Today being so frustrated, spent 3 hours to move the angular2 test application to the digitalocean cloud because of some small issues.

1. why npm install doesn’t work at all for the angular-cli

try the npm install command, but after the installation, the node_modules folder is still empty.

solution: install the yarn, and use yarn for the installation

2. Module build failed: Error: ENOENT: no such file or directory, scandir ‘/root/dashboard2/dashboard/node_modules/node-sass/vendor’

screenshot-2017-01-09-15-11-39

solution:
2.1 install python
2.2 npm rebuild node-sass