2
votes

I'm having some problems to install Jasminejs. I'll really appreciate some help please. Thanks!

First I run this:

npm install karma-cli -g

I don't get any errors with this command.

After running this command:

npm install jasmine-core --save-dev

I'm getting this messages:

[email protected]

UNMET PEER DEPENDENCY karma@

npm warn optional skipping failed optional dependency /chokidar/fsevents

npm warn notsup Not compatible with your operating system or architecture: [email protected]

npm warn [email protected] requires a peer of karma@* but none was installed.

npm warn karma [email protected] requires a peer of karma@>=0.9 but none was installed

If I try to run this command:

npm install phantomjs-prebuilt --save

I' getting a similar error message. I'm using Ubuntu 14.04.4, Node 5.10.1 and npm 3.10.2 .

1
npm warn notsup Not compatible with your operating system or architecture: [email protected] is the big problem here. Check on what conflicts it has with your software/hardware. - Matt Schuchard
@max Did you find the solution to this? I am also getting the same error. - newbie

1 Answers

2
votes

You met 'UNMET PEER DEPENDENCY' issue is because NPM3 no longer gets dependencies automatically. You should put missing dependency on the same install command line despite you have already installed the package.

e.g. npm install jasmine-core karma --save-dev