Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while installing yeoman

Tags:

npm

ubuntu

yo

I am trying to install yo on my ubuntu v16.4 LTS but i get this error:

npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm
npm ERR! Linux 4.4.0-22-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "yo"
npm ERR! node v6.2.0
npm ERR! npm  v3.9.0
npm ERR! path /usr/local/lib/node_modules/yo/lib/cli.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod

npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/yo/lib/cli.js'
npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/yo/lib/cli.js'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! Please include the following file with any support request:
npm ERR!     /home/momor1/npm-debug.log

As you see, I have the latest npm and nodejs, and I am in root mode so I still don't get it why its throwing this error. Any help please:)

like image 893
Kob_24 Avatar asked May 18 '16 10:05

Kob_24


1 Answers

It seems that this error occurs when you are trying to install the latest version, which was released today (2016/04/18): 1.8.2

Please try to install the previous version:

sudo npm install -g [email protected]

This is working for me now. Tested on a clean virtual machine with OS X El Capitan v10.11.2, node 4.4.4 and npm 3.9.0 and on my developer machine with OS X 10.11.5.

like image 166
Christian Junk Avatar answered Oct 21 '22 19:10

Christian Junk