Comments (16)
Seems like an npm issue ERR! Error: failed to fetch from registry: grunt-cli
from grunt-cli.
I just tried installing it here and seemed to work okay, try cleaning your cache with npm cache clean
and then installing again...
from grunt-cli.
I will try that, thank you.
from grunt-cli.
same issue after the fact of running the command. I even attempted to use the -f and still no go. So either it is a chmod issue on my system (just had to run su to install compass) or something else going on here. the exact command I am running is
npm install -g bower grunt-cli
This is the steps listed on foundation's website for installing foundation 5.
My server is Ubuntu Server 12.04.4 LTS
from grunt-cli.
@SimpleMajority Hey!
Are you sure it's the same issue that says Error: failed to fetch from registry: grunt-cli
?
You might need to run
sudo npm install -g bower grunt-cli
depending on your setup. -g
installs things into /usr/local/...
That directory might be protected, you can either:
change where it installs stuff OR use sudo
OR chmod that directory
from grunt-cli.
I have tried that vladikoff and I am in su now, so sudo wouldn't be a issue nor should the chmod at least that is my understanding.
from grunt-cli.
@SimpleMajority could you paste the error you are getting currently? Thanks!
from grunt-cli.
info it worked if it ends with ok
verbose cli [ 'node', '/usr/bin/npm', 'install', '-g', 'grunt-cli' ]
info using [email protected]
info using [email protected]
verbose config file /root/.npmrc
verbose config file /usr/etc/npmrc
verbose config file /usr/share/npm/npmrc
silly exec /usr/bin/node "/usr/share/npm/bin/npm-get-uid-gid.js" "nobody" 0
silly spawning [ '/usr/bin/node',
silly spawning [ '/usr/share/npm/bin/npm-get-uid-gid.js', 'nobody', 0 ],
silly spawning null ]
silly output from getuid/gid {"uid":65534,"gid":0}
silly output from getuid/gid
verbose cache add [ 'grunt-cli', null ]
silly cache add: name, spec, args [ undefined, 'grunt-cli', [ 'grunt-cli', null ] ]
verbose parsed url { pathname: 'grunt-cli', path: 'grunt-cli', href: 'grunt-cli' }
verbose addNamed [ 'grunt-cli', '' ]
verbose addNamed [ null, '' ]
silly name, range, hasData [ 'grunt-cli', '', false ]
verbose raw, before any munging grunt-cli
verbose url resolving [ 'https://registry.npmjs.org/', './grunt-cli' ]
verbose url resolved https://registry.npmjs.org/grunt-cli
http GET https://registry.npmjs.org/grunt-cli
ERR! Error: failed to fetch from registry: grunt-cli
ERR! at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
ERR! at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)
ERR! at Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18)
ERR! at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
ERR! at Request.<anonymous> (/usr/lib/nodejs/request/main.js:212:58)
ERR! at Request.emit (events.js:88:20)
ERR! at ClientRequest.<anonymous> (/usr/lib/nodejs/request/main.js:412:12)
ERR! at ClientRequest.emit (events.js:67:17)
ERR! at HTTPParser.onIncoming (http.js:1261:11)
ERR! at HTTPParser.onHeadersComplete (http.js:102:31)
ERR! You may report this log at:
ERR! <http://bugs.debian.org/npm>
ERR! or use
ERR! reportbug --attach /usr/npm-debug.log npm
ERR!
ERR! System Linux 3.8.0-29-generic
ERR! command "node" "/usr/bin/npm" "install" "-g" "grunt-cli"
ERR! cwd /usr
ERR! node -v v0.6.12
ERR! npm -v 1.1.4
ERR! message failed to fetch from registry: grunt-cli
verbose exit [ 1, true ]
from grunt-cli.
I just chmod'd the bin directory to 777 as that seems to be where it wants to install grunt-cli
from grunt-cli.
Ok this doesn't look like a permission issue, still fetch fails.
Does this help: http://stackoverflow.com/a/13119867/3236296 ?
from grunt-cli.
Also update your Node.js
info using [email protected]
info using [email protected]
0.6 is really old. Grunt is > 0.8
https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager#wiki-ubuntu-mint-elementary-os
from grunt-cli.
I ran the npm update npm -g and got no errors. It is still reading 1.1.4 and 0.6.12 respectively. I ran the cache clean command and now I get this error line.
info it worked if it ends with ok
verbose cli [ 'node', '/usr/bin/npm', 'install', '-g', 'bower', 'grunt-cli' ]
info using [email protected]
info using [email protected]
verbose config file /root/.npmrc
verbose config file /usr/etc/npmrc
verbose config file /usr/share/npm/npmrc
silly exec /usr/bin/node "/usr/share/npm/bin/npm-get-uid-gid.js" "nobody" 0
silly spawning [ '/usr/bin/node',
silly spawning [ '/usr/share/npm/bin/npm-get-uid-gid.js', 'nobody', 0 ],
silly spawning null ]
silly output from getuid/gid {"uid":65534,"gid":0}
silly output from getuid/gid
verbose cache add [ 'bower', null ]
silly cache add: name, spec, args [ undefined, 'bower', [ 'bower', null ] ]
verbose parsed url { pathname: 'bower', path: 'bower', href: 'bower' }
verbose cache add [ 'grunt-cli', null ]
silly cache add: name, spec, args [ undefined, 'grunt-cli', [ 'grunt-cli', null ] ]
verbose parsed url { pathname: 'grunt-cli', path: 'grunt-cli', href: 'grunt-cli' }
verbose addNamed [ 'bower', '' ]
verbose addNamed [ null, '' ]
silly name, range, hasData [ 'bower', '', false ]
verbose addNamed [ 'grunt-cli', '' ]
verbose addNamed [ null, '' ]
silly name, range, hasData [ 'grunt-cli', '', false ]
verbose raw, before any munging bower
verbose url resolving [ 'http://registry.npmjs.org/', './bower' ]
verbose url resolved http://registry.npmjs.org/bower
http GET http://registry.npmjs.org/bower
verbose raw, before any munging grunt-cli
verbose url resolving [ 'http://registry.npmjs.org/', './grunt-cli' ]
verbose url resolved http://registry.npmjs.org/grunt-cli
http GET http://registry.npmjs.org/grunt-cli
http 200 http://registry.npmjs.org/grunt-cli
silly get cb [ 200,
silly get cb { server: 'CouchDB/1.5.0 (Erlang OTP/R16B)',
silly get cb etag: '"B38AENYZSAJTDWQR2ZXNDTVVN"',
silly get cb 'content-type': 'application/json',
silly get cb via: '1.1 varnish',
silly get cb 'cache-control': 'max-age=1',
silly get cb 'content-length': '19036',
silly get cb 'accept-ranges': 'bytes',
silly get cb date: 'Thu, 06 Feb 2014 06:43:30 GMT',
silly get cb age: '17216',
silly get cb connection: 'keep-alive',
silly get cb 'x-served-by': 'cache-v37-ASH, cache-c100-CHI',
silly get cb 'x-cache': 'HIT, HIT',
silly get cb 'x-cache-hits': '1, 1',
silly get cb 'x-timer': 'S1391652036.275357008,VS0,VS8,VE20,VE16974084',
silly get cb vary: 'Accept' } ]
verbose mkdir (expected) error ENOENT, no such file or directory '/root/.npm/grunt-cli'
verbose mkdir done: /root/.npm/grunt-cli 755
silly name, range, hasData 2 [ 'grunt-cli', '', true ]
silly versions [ 'grunt-cli', [] ]
ERR! Error: No compatible version found: grunt-cli
ERR! No valid targets found.
ERR! Perhaps not compatible with your version of node?
ERR! at installTargetsError (/usr/share/npm/lib/cache.js:488:10)
ERR! at next_ (/usr/share/npm/lib/cache.js:438:17)
ERR! at next (/usr/share/npm/lib/cache.js:415:44)
ERR! at /usr/share/npm/lib/cache.js:408:5
ERR! at saved (/usr/share/npm/lib/utils/npm-registry-client/get.js:147:7)
ERR! at Object.oncomplete (/usr/lib/nodejs/graceful-fs.js:230:7)
ERR! You may report this log at:
ERR! <http://bugs.debian.org/npm>
ERR! or use
ERR! reportbug --attach /usr/npm-debug.log npm
ERR!
ERR! System Linux 3.8.0-29-generic
ERR! command "node" "/usr/bin/npm" "install" "-g" "bower" "grunt-cli"
ERR! cwd /usr
ERR! node -v v0.6.12
ERR! npm -v 1.1.4
ERR! message No compatible version found: grunt-cli
ERR! message No valid targets found.
ERR! message Perhaps not compatible with your version of node?
verbose exit [ 1, true ]
from grunt-cli.
Hey!
Yeap, this error makes sense
ERR! node -v v0.6.12
ERR! npm -v 1.1.4
ERR! message No compatible version found: grunt-cli
ERR! message No valid targets found.
Grunt requires Node > 0.8
, the error still says ERR! node -v v0.6.12
Follow the steps here to update using a PPA: https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager#wiki-ubuntu-mint-elementary-os
from grunt-cli.
Okay there it goes, the link after the stackoverflow fixed it and now they are installing.
from grunt-cli.
This thread helped me too. Thank you so much
from grunt-cli.
You tried this command below?
npm config set registry http://registry.npmjs.org/
from grunt-cli.
Related Issues (20)
- Grunt crashing in Node.js v10 HOT 7
- grunt not working on nodejs v10.6.0 HOT 1
- CLI options cwd and require are not parsed correctly in v1.3.0 HOT 2
- can't run Gruntfile.js HOT 3
- bad option: --force on Node 10 HOT 3
- gruntfile option is part of grunt.option.flags()
- npm ERR! 409 Conflict: v8flags@~3.1.1 HOT 1
- "high" severity vulnerability via liftoff dependency HOT 3
- how to disable "tab auto run grunt-cli" on macOS
- Local Npm module "grunt-cli" not found. Is it installed?
- Can't have command-line argument "--module" in Node 12 HOT 1
- Brand new install, 2 deprecated messages (but on console error output) HOT 1
- Security warning for liftoff dependency HOT 1
- Current doc says "typescript" needs to be installed for TypeScript support, but I believe `ts-node` required as well
- Global install of grunt-cli not working
- Unexpected Token issue with Magento 1 deploy HOT 3
- lodash CVE HOT 1
- "--report-directory" flag ignored by grunt-cli@~1.4.2
- Hi
- grunt-cli needs a release for the dependency updates three months ago HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-cli.