I have faced such issues in the past.
One of the cause of the issue is the incorrect path. You need to crosscheck your path.
It is possible that you are using the old version of Node JS which is not supporting the template litterels. So you can try to upgrade to the latest version of Node JS.
If above solutions are not working for you then you should remove all the node/npm/gulp files from /usr/local area.
Then you should use "rpm -e" to remove all the nodejs packages and the npm
After that use below commands
yum install nodejs npm
npm install -g n
npm install -g gulp
It will fix your issue.