-
Notifications
You must be signed in to change notification settings - Fork 719
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
Missing grunt-cli for Node.js 0.11.16, 0.12.0 and io.js 1.2.0 #3231
Comments
The same goes for Node.js 0.11.16: https://travis-ci.org/dancek/grunt-more-css/jobs/50738884 |
The document is a bit inaccurate. The pre-installed versions, iojs-v1.1.0 and 0.11.15, have grunt pre-installed, but these more recent versions are installed on demand by NVM, and as such, does not have grunt. @ljharb Is there a way to make this easier on users? |
@BanzaiMan the only options I can think of are:
The general community convention is that if a module requires X, X should be in package.json as a dependency/devDependency, and if it's a cli, it should be run via |
@ljharb I agree that it's best to have as little as possible installed globally. Unfortunately the Grunt plugin convention seems to be to define the test script as My suggestion is to mention in the documentation that Travis CI used to have |
I've cleared up this point in the update announcement. Given the options, I am of the opinion that there is no clean way to provide |
@dancek Any task begun underneath an |
I am totally for not pre-installing grunt and instead advise people to use |
@ljharb thanks for clearing that up. I added a dev dependency to "scripts": {
"grunt-test": "grunt test",
"test": "npm run grunt-test"
}, I see no downsides to this approach, so I'm going to suggest it for grunt-init-gruntplugin. |
@dancek Great! You could also shorten that to |
I've clarified the announcement, and there is no mention of grunt in the language page. There is nothing to do here, right? I'm closing this. |
We're suddenly running into this in TryGhost/Ghost. Our build matrix looks like:
Our
I spoke to @henrikhodne on IRC who pointed me here. Our full build has been using that matrix for over a month and passing, and then randomly started failing yesterday (during the difficulties). Sometimes node v0.12 runs ok, sometimes iojs-v1.2.0 runs ok and sometimes they both fail. It's seemingly completely random:
I understand if we need to make some changes, but I'd like to understand what's going on and why we are only just affected? This thread mentions an update announcement but there is no link so I'm not sure if there is more info there. Is this somehow dependent on what exact versions of node are preinstalled on a given VM? Has something only just changed? Or are we running into a bug? |
Apparently
grunt
is not available in Node.js 0.12 and io.js environments, as seen eg. in this build: https://travis-ci.org/dancek/grunt-more-css/builds/50741238Documentation suggests that grunt-cli is provided for Node.js >= 0.8.
The text was updated successfully, but these errors were encountered: