-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix underscore.string dependency #886
Conversation
According to the [npm registry], there is no `underscore.string@2.2.0rc`, instead the version is `2.2.0-rc`. [npm registry] http://registry.npmjs.org/underscore.string
Thanks! But we have the deps versioned with a prepended |
@shama AFAIK that’s not the case, because in |
What error are you getting? and which version of node.js are you running? |
I’m running 0.10.17. When I just do
I get this error:
|
@adrianlang Try git clone git://github.com/gruntjs/grunt
cd grunt
npm install underscore.string@2.2.1 node_modules/underscore.string I also get |
|
I wonder if it's because your npm is at |
That is odd, 0.10.17 shipped with npm 1.3.8 |
@nschonni @shama I’m using the debian sid packages for both, that’s why my npm version is a bit odd. However, I don’t think it actually matters too much which odd versions I use and which odd steps I take in order to reproduce the problem: Semantic Versioning clearly states that pre-release versions are denoted by appending a hyphen and the pre-release identifier. The format used in |
@adrianlang It does matter though. If an issue is occurring through normal installation then it is a bug and we should do a patch fix for it. If it only occurs when a user sets up an abnormal configuration then we'd advise the user not to do that. The version of @cowboy Do you think this merits a patch fix? |
|
I'm hesitant to change anything in Grunt at the moment, since everything works just fine with the latest version of npm, which is easy to upgrade to if you happen to be using an older version. This problem could be addressed by adding npm-specific troubleshooting information into the official docs. It's something I really don't want to do, but people file so many npm-specific issues that it might be worthwhile. |
@nschonni This has nothing to do with git tags. @cowboy I understand that you are hesitant to change. However, from my point of view, a tiny part of grunt’s |
I am also experiencing this issue with 1.2.18. I want to point out that this is the version of npm that will ship with Ubuntu 13.10 LTS later this year, so a large number of people will probably run into this issue in a month or so. |
@adrianlang +1 @cowboy I'm also experiencing this issue, and it's pretty frustrating. Seems like a quick fix to update the package.json to specify a better version name. Updating NPM did not fix the problem. |
Reopening this for 0.4.2, so we don't forget :) |
@bprosnitz can you test this out by cloning and checking out master and make sure it works for you? |
@cowboy It is hard for me to evaluate the issue as I'm new to node and not sure if I am building it correctly in the branch. Running 'npm install' in master was failing due to a step where it tried to fetch grunt as a dependency and then ended up hitting the same issue i was seeing before. It seems strange to me that grunt has itself as an indirect dependency. However, since this failed due to the grunt dependency being out of date, I would imagine it might work once a new version of grunt hits the npm repository. |
I'm having this problem on the Ubuntu 13.10 release. Cloning from master works and then npm install. When can you release this new package? |
Forgot to say that this is still a problem: 11912 verbose from cache /home/tomas/dev/grunt/node_modules/grunt-contrib-jshint/package.json 11922 error node -v v0.10.15 Ubuntu 13.10 LTS |
@ptomasroos You can fix it now by upgrading npm: |
I've tried that and it refuses still same version after I run that. :/ Sent from my iPhone On 6 nov 2013, at 18:28, Kyle ☱☲☳☴☵☷ ☶ Robinson ☱☲ ☳☴☵☶☷ Young notifications@github.com wrote:
|
Running that on Ubutun 13.10 causes following output. tomas@tomas-ubuntu:~$ sudo npm install npm -g Running it from that path causes following. tomas@tomas-ubuntu:~$ node /usr/local/lib/node_modules/npm/bin/npm-cli.js -v Running it on the regular path still shows old version tomas@tomas-ubuntu: So clearly the nodejs / npm package in ubuntu is not pointing to the correct path so that selfupdates can occurr So I'm still stuck. |
I solved it by skipping the Ubuntu official package and getting the PPA maintained by chris lea instead. sudo apt-get update |
yeap that's the way to go @ptomasroos :) |
Fixed this using @ptomasroos' path on Ubuntu 13.10. Thanks! |
Thanks @ptomasroos . On Ubuntu 13.10 I had to do this instead of the python-software-properties:
|
Fixed this using @ptomasroos' path on Ubuntu 13.10. Thanks! |
ooops ,me too here |
Same here, thank you @ptomasroos ! |
Works for me. Thanks, @ptomasroos. |
Fixed this using @ptomasroos' path on Ubuntu 12.04.4 LTS |
According to the npm registry, there is no
underscore.string@2.2.0rc
, instead the version is2.2.0-rc
.