Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

Error: Cannot find module 'jasmine-core'

Ads

 
 

Share on Google+Share on Google+

Java Coder
Error: Cannot find module 'jasmine-core'
1 Answer(s)      2 months and 12 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
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
Advertisements
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
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
Version of gj-find>gj-find dependency
List of Version of gj-find>gj-find dependency
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
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
spring JEE module tutorial
spring JEE module tutorial  Hi, I want spring Jee module tutorial and spring ORM module tutorial plz send me
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
spring DAO module turorial
spring DAO module turorial  how to integrate springDAO and spring webMVC
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
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
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
Structure of Web Module
In this section, you will learn the structure of the web module
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
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
Artifacts of gj-find
List of Artifacts of gj-find maven depenency
Find the Running time in sql***
Find the Running time in sql***  I have 10 backend jobs in sql which runs at different time intervals. Sample data is shown below Table name:- Job... want to find the running time of both the jobs. (i.e when i run the query
java find the error1
java find the error1  package com.test.dao; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; public class DBConnections { public static String userName=""; public static String
find largest value
find largest value  (Assignment 1 - LargestValue)The process of finding the largest value (i.e., the maximum of a group of values) is used frequently...; Java Find Largest Number import java.util.*; class FindLargest
Cannot find tag library descriptor
Cannot find tag library descriptor  Cannot find tag library descriptor...? How to resolve in struts in eclipse
Find out last character of array
Find out last character of array  How we can find out the last character of array in java program
java find the error2
java find the error2  protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub String temp=request.getRequestURI
java find the error3
java find the error3  public String studentDel(StudentBean studObj) throws ClassNotFoundException, SQLException { Connection conObj=DBConnections.setConnection(); PreparedStatement ps
java find the error4
java find the error4  public String executeStudentInsert(HttpServletRequest request ) throws ClassNotFoundException, SQLException { StudentBean beanObj = new StudentBean(); beanObj.setStudentName(request.getParameter("Name
java find the error7
java find the error7   var name=document.forms["insert"]["in_username"]; var age=document.forms["insert"]["in_userage"]; var address=document.forms["insert"]["in_address"]; var phone=document.forms["insert
Mysql Find Duplicate Records
Mysql Find Duplicate Records       Mysql Find Duplicate Records is used to find the duplicate Records... 'Mysql Find Duplicate Records'. To grasp and understand example, the select