Skip to content
This repository was archived by the owner on May 22, 2026. It is now read-only.
This repository was archived by the owner on May 22, 2026. It is now read-only.

a couple of more commands to avoid dependency hell #1

Description

@citizen-xyz

First thank you for the good book! :)

I've reached the place in the book where we install karma and jshint globally and also install the skeleton yfa project's dependencies.

I've received dependency errors and started debugging.

The errors provided a very good information about what dependency needs a newer version than the one we provide in karma@...

Using my experience with the PHP's composer I realised that karma's package at this specific version is looking for the latest version of one of its dependencies.

I also knew that if I install this dependency before karma, it will be used instead of the latest one.
The same thing happened with the local yfa packages.

I just picked older versions of the dependencies without researching them thoroughly by only checking with npm show 'package' versions

These are the commands I used. Maybe there is a better way but I leave them here as a reference to other people like me if they happen to have the same problem:

npm install -g karma-coffee-preprocessor@0.1.3
npm install -g karma@0.10.4 jshint@2.3.0
npm install karma-mocha@0.1.0
npm install -d

I'm planning later to modify a little package.json to have this automatically for the local packages.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions