ENOENT error when trying to install Yeoman from npm

FunnyJava

I am trying to install Yeoman using the following command in cmd:

npm install --global yo

I get the following:

npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\{userdir}\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "--global" "yo"
npm ERR! node v4.4.4
npm ERR! npm  v3.9.0
npm ERR! path C:\{userDIr}\AppData\Roaming\npm\node_modules\yo\lib\cli.js
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall chmod

npm ERR! enoent ENOENT: no such file or directory, chmod 'C:{userDir}\AppData\Roaming\npm\node_modules\yo\lib\cli.js'
npm ERR! enoent ENOENT: no such file or directory, chmod 'C:\{userDir}\AppData\Roaming\npm\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!     C:\{userDir}\npm-debug.log

The following are installed:

  • Node.js v4.4.4
  • npm v2.15.1, v3.9.0 (I tried with both versions, I had exactly the same output message)

and my PC runs on Windows 7 x64.

Solutions I tried:

  1. I run

    npm cache clear

but no luck.

  1. I uninstalled and reinstalled node.js, but nothing changed either.
  2. I also tried the following:

    • deleted the node_modules folder

    • deleted C:\\AppData\Roaming\npm-cache folder

    • unchecked and applied Read-only in the properties for C:\AppData\Roaming\npm folder
  3. I read all the answers to related problems here, but nothing helped.

Before that, I successfully installed bower v1.7.9 and grunt v1.2.0 with npm, executing

npm install --global yo bower grunt-cli

Any help will be appreciated.

FunnyJava

According to https://github.com/npm/npm/issues/10312 and https://github.com/yeoman/yo/issues/437 the issue is yo v1.8.2 .

Executing

npm install --global [email protected]

instead of

npm install --global yo

solved the problem, although there will probably be a hotfix released soon.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

npm install errors with Error: ENOENT, chmod

From Dev

yeoman: automatically install npm modules

From Dev

Node JS - child_process spawn('npm install') in Grunt task results in ENOENT error

From Dev

Yeoman: install dependencies from cache

From Dev

npm install error from the terminal

From Dev

npm update error while trying to install ionic

From Dev

npm ERR! Error: spawn ENOENT

From Dev

Yeoman generator issues Error: spawn ENOENT

From Dev

Error when trying to install plotly

From Dev

Error when trying to install pycurl

From Dev

ENOENT error running npm install

From Dev

Yeoman npm install fails on Windows

From Dev

Trying to install yeoman on ubuntu to use with nodejs and npm

From Dev

Going crazy trying to install Yeoman

From Dev

Node JS - child_process spawn('npm install') in Grunt task results in ENOENT error

From Dev

Trying to install yeoman on ubuntu to use with nodejs and npm

From Dev

Trying to install forever from npm

From Dev

What is happening in this npm install of yo (yeoman)

From Dev

npm install error from the terminal

From Dev

npm update error while trying to install ionic

From Dev

npm ERR! Error: spawn ENOENT

From Dev

Error when trying to install wine

From Dev

Error when trying to install plotly

From Dev

Error when trying to install GPGME

From Dev

Yeoman npm install fails on Windows

From Dev

Error when trying to update npm on live server?

From Dev

npm throws ENOENT error when trying to install module

From Dev

Error when trying to install coloredlogs

From Dev

Why is npm deleting my npm folder when trying to install gulp?