Repository cannot be installed?
lukewhitehouse opened this issue ยท 28 comments
Hey there, I've been trying to install the repository via NPM both in its registry and with the GIT url and I'm getting the following errors:
npm install --save-dev gulp-modernizr
npm WARN package.json Mixd-Frontend-Framework@1.0.0 No repository field.
npm http GET https://registry.npmjs.org/gulp-modernizr
npm http 404 https://registry.npmjs.org/gulp-modernizr
npm ERR! 404 'gulp-modernizr' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.
and with the GIT url ...
npm install --save-dev https://github.com/doctyper/gulp-modernizr
npm WARN package.json Mixd-Frontend-Framework@1.0.0 No repository field.
npm http GET https://github.com/doctyper/gulp-modernizr
npm http 200 https://github.com/doctyper/gulp-modernizr
npm ERR! not a package /var/folders/v3/7m8n_d617kzdvw3z2m6kttlr0000gn/T/npm-6344-rNguOVd-/1403471157007-0.10342534794472158/tmp.tgz
npm ERR! Error: ENOENT, open '/var/folders/v3/7m8n_d617kzdvw3z2m6kttlr0000gn/T/npm-6344-rNguOVd-/1403471157007-0.10342534794472158/package/package.json'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/isaacs/npm/issues>
Perhaps something to do with the package.json?
Hope that helps,
Luke
๐ Same issue here...
To use the second one try "npm install --save-dev https://github.com/doctyper/gulp-modernizr.git"
But the first one it's because gulp-modernizr it's not registered in npm service I guess.
Same issue
+1
@gsdias Tried that too, didn't work mate.
same here cannot install it at all, tried both gulp-modernizr and https://github.com/doctyper/gulp-modernizr.git
I use this tried and true method:
npm install --save-dev https://github.com/doctyper/gulp-modernizr/tarball/develop
(or whatever branch you'd like to point to)
Yep +1
too soon, it started well
ended up with
npm ERR! Failed at the customizr@0.0.0 postinstall script.
npm ERR! This is most likely a problem with the customizr package,
@merlindiavova That is a known issue (#6), but unrelated to this one.
@doctyper noted thanks
still an issue..
@doctyper Works for me. Thanks!
Still an issue
๐ ๐ ๐
After installing modernizer (npm install --save-dev git://github.com/doctyper/gulp-modernizr.git
)
i get an error too:
> customizr@0.0.0 postinstall .../node_modules/gulp-modernizr/node_modules/customizr
> if [[ -d node_modules/modernizr ]]; then ( cd node_modules/modernizr; npm install --production; cd -; ); fi
sh: 1: [[: not found
Ok, this module is really broken. It stops working if you have a async task in your pipeline after that it changes your cwd to something in the node_modues directory.
PS: why does it need so many un-"dependent" grunt modules?
Building your customized Modernizr
>> Local Npm module "grunt-contrib-requirejs" not found. Is it installed?
>> Local Npm module "grunt-contrib-connect" not found. Is it installed?
>> Local Npm module "grunt-saucelabs" not found. Is it installed?
>> Local Npm module "grunt-contrib-qunit" not found. Is it installed?
>> Local Npm module "grunt-contrib-nodeunit" not found. Is it installed?
I've just pushed an updated build to the develop branch. It moves the inline shell code to a (hopefully) cross-OS-friendly node script. To update:
$ npm uninstall gulp-modernizr
$ npm cache clear
$ npm install --save-dev "gulp-modernizr@https://github.com/doctyper/gulp-modernizr/tarball/develop"
Let me know if this alleviates the errors.
i am not working with gulp-modernizr, but working with modernizr and use code in package.json
"scripts": {
"postinstall": "cd node_modules/modernizr && npm install --save-dev --unsafe-perm"
},
Same issue as in Modernizr/Modernizr#1290
I have opened a pull-request: Modernizr/customizr#5
What is the status of this?
Current version works fine for me on both Windows and OS X.
Tried all of the suggestions above with no luck. Any idea when this will get fixed?
Same issue for me. I am not able to sudo npm install --save-dev gulp-modernizr!
Hi guys and girls is this still an issue for you with the newest version (2.0.0) or did you already move on?
Moved on prob, this is almost 3 years old for me.