-
Notifications
You must be signed in to change notification settings - Fork 501
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
Chapter5: grunt issues (on Windows 7) #78
Comments
Just ran into the same issue. I was able to workaround this issue by installing version 0.4.1 of grunt, which looked to be the closest version requirement of all the dependencies thrown out in the error messages.
That said, if anyone else is familiar, are there new or better dependencies that work with "grunt": "^1.0.1"? Some initial google searches show it's quite a common issue, so maybe just some more reading will shine some light on the issue. |
By the way, am I right that these issues have nothing to do with OS I'm working on? Those are NodeJs modules, the same for Windows, Linux, etc, correct? |
Sorry I haven't been able to respond routinely to this thread...work is busy, and my partner and I have a baby on the way...due on Saturday! @vkelman , it is frustrating, I understand, and I'm sorry. Heck, it's frustrating for those of us who are experienced users. I haven't run across this problem with grunt, but doing a little research, the problem looks like it might be related to global modules. Grunt is normally installed both globally (for the command-line runner) and locally (for Re: OS issues: I'm afraid to say that they may have to do with OS. Ostensibly, Node is a cross-platform environment, but that doesn't stop module creators from writing things that don't behave well cross-platform. I've actually been fairly disappointed in the lack of commitment in the community to cross-platform support. For example, I will be removing coverage of cross-browser testing with Zombie from the next edition of this book because of extremely poor cross-platform support for Zombie. Sorry again that you're having issues, and I'm sorry I don't have the bandwidth to really dive in right now. I will be releasing a major update (new edition, most likely) in 2017. |
Ethan, Thank you for support. I totally understand and don't expect immediate solutions. |
All, Ethan, |
@Pinnock - good idea about using specific version numbers in package.json. I'm readying Angular 2 Development with TypeScript book in parallel, and there are similar issues with all the packages evolving fast. Specifying exact package versions which were tested to run on Linux and Windows, then, after a while, upgrading them, and testing again is the way to go. We readers can also help in this process. |
For inexperienced user like me problems with setting up tests are much more significant than with running actual code. I understand it's not under book author's control: open source apps are constantly experiencing breaking changes. But it leads to frustration and just ignoring tests altogether.
For me trying to run any of these
npm install --save-dev grunt-cafe-mocha
npm install --save-dev grunt-contrib-jshint
npm install --save-dev grunt-exec
Leads to following errors:
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "--save-dev" "grunt-exec"
npm ERR! node v4.4.4
npm ERR! npm v2.15.1
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package [email protected] does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants grunt@>=0.4
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.1
npm ERR! peerinvalid Peer [email protected] wants grunt@>=0.4.0
npm ERR! Please include the following file with any support request:
npm ERR! C:\Developer\WebstormProjects\NodeJs\MeadowlarkTravel\npm-debug.log
The text was updated successfully, but these errors were encountered: