$npm-install-all /usr/bin/env: ‘node\r’: No such file or directory

If you are using linux and you have this error:

 /usr/bin/env: ‘node\r’: No such file or directory  
when trying to use: npm-install-all..

Here you have the solution:
1) Check where do you have it installed

 $locate npm-install-all  
2)In my case is in: "/usr/lib/node_modules/npm-install-all"
-Let's go there:

 $cd /usr/lib/node_modules/npm-install-all/  
3) Convert the index.js file from windows format to unix using dos2unix (sudo apt-get install dos2unix)
 $ sudo dos2unix index.js  
dos2unix: converting file index.js to Unix format ...

Solved!

Now it's working!

Comentaris

Entrades populars d'aquest blog

Export data from Xiaomi miband 2 (Mi Fit) to csv (Excel).