Error: Cannot find module 'jasmine-core'

Ads

 
 

Share on Google+Share on Google+

Java Coder
Error: Cannot find module 'jasmine-core'
1 Answer(s)      14 days ago
Posted in : JavaScript Questions

Hi,

I am trying to make a testing application using jasmine and karma framework. When I run the command:

karma start

Its throwing following error:

Error: Cannot find module 'jasmine-core'

C:\testangularjs\karmajasmine>karma start
module.js:471
    throw err;
    ^

Error: Cannot find module 'jasmine-core'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.resolve (internal/module.js:27:19)
    at initJasmine (C:\Users\user\AppData\Roaming\npm\node_modules\karma-jasmine\lib\index.js:8:42)
    at Array.invoke (C:\Users\user\AppData\Roaming\npm\node_modules\karma\node_modules\di\lib\injector.js:75:15)
    at Injector.get (C:\Users\user\AppData\Roaming\npm\node_modules\karma\node_modules\di\lib\injector.js:48:43)
    at C:\Users\user\AppData\Roaming\npm\node_modules\karma\lib\server.js:143:20
    at Array.forEach (native)
    at Server._start (C:\Users\user\AppData\Roaming\npm\node_modules\karma\lib\server.js:142:21)
    at Injector.invoke (C:\Users\user\AppData\Roaming\npm\node_modules\karma\node_modules\di\lib\injector.js:75:15)
    at Server.start (C:\Users\user\AppData\Roaming\npm\node_modules\karma\lib\server.js:103:18)
    at Object.exports.run (C:\Users\user\AppData\Roaming\npm\node_modules\karma\lib\cli.js:280:26)
    at Object.<anonymous> (C:\Users\user\AppData\Roaming\npm\node_modules\karma\bin\karma:3:23)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)

C:\testangularjs\karmajasmine>

How to resolve this error?

Thanks

Ads
View Answers

May 11, 2017 at 4:00 PM


Hi,

To solve this problem install jasmine-core globally:

npm install -g jasmine-core

Thanks


Ads









Related Tutorials/Questions & Answers:
Error: Cannot find module 'jasmine-core'
Error: Cannot find module 'jasmine-core'  Hi, I am trying to make...; ^ Error: Cannot find module 'jasmine-core' at Function.Module....: karma start Its throwing following error: Error: Cannot find module 'jasmine
Admin Module
Admin Module The admin have the privilege  to add the question, delete the question. He is responsible for maintaining the site. He can also search the question paper by question Id and by title. The Admin does the following
Advertisements
User Module
User Module The user first need to make registration on the website for appearing in the online examination. After the making successful registration he is eligible for online test examination. To appear in the examination he need
spring JEE module tutorial
spring JEE module tutorial  Hi, I want spring Jee module tutorial and spring ORM module tutorial plz send me
spring DAO module turorial
spring DAO module turorial  how to integrate springDAO and spring webMVC
login module program
login module program  hello friends i want to develop the web service using .net pls send the login ejb module .net program to my mail id
login module program
login module program  hello friends i want to develop the web service using .net pls send the login ejb module .net program to my mail id
Structure of Web Module
In this section, you will learn the structure of the web module
Module In An Application
are as follows- Customer Module Customer Registration Customer Login.... and save information Admin Module Add Update Delete Search Add Scheme on The Product Generate Report of Product Shipping Module View Shipping
what is separate request processor per module in struts1
what is separate request processor per module in struts1  what is separae request processor per module in struts1.x
what is separate request processor per module in struts1
what is separate request processor per module in struts1  what is separae request processor per module in struts1.x
ImportError: No module named scipy.ndimage - Solved
ImportError: No module named scipy.ndimage - Solved  Hi, How to solve following error: ImportError: No module named scipy.ndimage This error..., in <module> import scipy.ndimage as ndi ImportError: No module named
How to fix HAX Kernel Module Is Not Installed error?
How to fix HAX Kernel Module Is Not Installed error?  Hi, How to fix HAX Kernel Module Is Not Installed error? Android studio gives following error...: HAX kernel module is not installed! Thanks   Check following video
How Spring MVC Module Works
of Spring MVC module. The Spring MVC modules comes with the Spring
ModuleManager for load or unload module in Flex 3
Load module with the help of ModuleManager class:- In this example, we will used module manager to load and unload modules in the application. It is loaded module with the help of  IModuleInfo interface by using the ModuleManager
struts url problem in Switching module using SwitchAction class - Struts
struts url problem in Switching module using SwitchAction class  when... from my login module to admin module it shows the url of login module after going in admin module but it goes successfully to admin module
Spring JDBC, Spring JDBC Module, Spring JDBC Tutorial
The Spring JDBC provides consistent access to the various database access technologies including JDBC, Hibernate, JPA or JDO. In this Spring JDBC tutorial we will learn how to use the JDBC module to access and manipulate databases
find the factorial
find the factorial  how to find the factorial through the while loop?   class FindFactorial { public static void main(String[] args) { int value = 5, factorial = 1, temp = value; while
find and substring
find and substring   **import java.io.BufferedReader; import... BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter find...){ } } public void findreplace(String find, String replace
PHP find online users
PHP find online users  How to find the online users in PHP
find and replace in java
find and replace in java  Need 'find and replace' function in Java to find special keyword in XMl such as @,#,!,%..and replace with their corresponding entities
MySql find and replace string
MySql find and replace string  How to find and replace string or special characters in MySql & PHP?   Find and Replace String PHP $result = preg_replace('/\band\b/i', 'foo', $subject
WAP to find HCF
WAP to find HCF  Hi, can any one please share teh code to find the HCF of 2 or 3 numbers
idea for find the worm - Security
idea for find the worm  HI Guys, Please give any advise or code for find the worm and prevent the worm.I am doing the project as a distributed antiworm systems.Please help me
Find city latitude and longitude
Find city latitude and longitude  Hi, I have to find find city latitude and longitude for one of map based application. My application is based on Google map and I am adding cities using city latitude and longitude. In my
find the first character is vowel or not
find the first character is vowel or not  hi friend, can u plz send me javascript code for find the wether the first character is a vowel or not. 2) check wether the last character is same as the first character or not 3) check
Sort the element find mean
Sort the element find mean  Hi Friend, I want to find meaning of some real numbers like, if we have numbers- 52.15, 89.0, 314.48, 845.75, 309.11, 575.36, 398.98, 318.64, 2485.12, 377.44 Then I want to find
to find simple interst
to find simple interst  create a class of object insert with a constructor. write a program to find out simple interest   import java.util....; this.t=t; } public void find(){ double rate=r/100; double