question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cannot get tests to run.

I used npm run test and get the 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” “run” “tslint” “Client/**/.ts" npm ERR! node v4.4.7 npm ERR! npm v2.15.8 npm ERR! code ELIFECYCLE npm ERR! aspnetnetcore@0.0.0 tslint: tslint "Client/**/_.ts" npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the aspnetnetcore@0.0.0 tslint script ‘tslint "Client/__/_.ts "’. npm ERR! This is most likely a problem with the aspnetnetcore package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! tslint "Client//.ts” npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs aspnetnetcore npm ERR! Or if that isn’t available, you can get their info via: npm ERR! npm ERR! npm owner ls aspnetnetcore npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! C:\Users\housec\Downloads\AspNetCoreSpa-master (1)\AspNetCoreSpa-ma ster\npm-debug.log

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” “run” “lint” npm ERR! node v4.4.7 npm ERR! npm v2.15.8 npm ERR! code ELIFECYCLE npm ERR! aspnetnetcore@0.0.0 lint: npm run tslint "Client/**/*.ts" npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the aspnetnetcore@0.0.0 lint script ‘npm run tslint “Client/* /.ts”’. npm ERR! This is most likely a problem with the aspnetnetcore package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! npm run tslint “Client/*/.ts” npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs aspnetnetcore npm ERR! Or if that isn’t available, you can get their info via: npm ERR! npm ERR! npm owner ls aspnetnetcore npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! C:\Users\housec\Downloads\AspNetCoreSpa-master (1)\AspNetCoreSpa-ma ster\npm-debug.log

npm ERR! Windows_NT 6.1.7601 npm ERR! argv “C:\Program Files\nodejs\node.exe” “C:\Users\housec\AppData
\Roaming\npm\node_modules\npm\bin\npm-cli.js” “run” “test” npm ERR! node v4.4.7 npm ERR! npm v3.10.5 npm ERR! code ELIFECYCLE npm ERR! aspnetnetcore@0.0.0 pretest: npm run lint npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the aspnetnetcore@0.0.0 pretest script ‘npm run lint’. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the aspnetnetcore package , npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! npm run lint npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs aspnetnetcore npm ERR! Or if that isn’t available, you can get their info via: npm ERR! npm owner ls aspnetnetcore npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! C:\Users\housec\Downloads\AspNetCoreSpa-master (1)\AspNetCoreSpa-ma ster\npm-debug.log

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
asadsahicommented, Aug 15, 2016

Thanks for letting me know.

According to angular.io docs, testing guidelines aren’t final yet, so I will hang on, before making changes as per RC5 in this project.

0reactions
asadsahicommented, Aug 15, 2016

@crh225 thanks for helping. I have merge the pull request.

plus signs are conventions to prefix folder with modules which will be lazily loaded as explained in angular 2 guidelines here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Karma - Spectacular Test Runner for Javascript
The main goal for Karma is to bring a productive testing environment to developers. The environment being one where they don't have to...
Read more >
Karma - Spectacular Test Runner for JavaScript
A simple tool that allows you to execute JavaScript code in multiple real browsers. The main purpose of Karma is to make your...
Read more >
Karma JS Testing: What, Why, and How to Get Going Right ...
Karma is a testing tool developed by the AngularJS team, so it's understandable why it's usually associated with the framework.
Read more >
Front-End Unit Testing Using Karma Test Runner
Karma is a node-based test tool that allows you to test your JavaScript codes across multiple real browsers. Hence it is termed as...
Read more >
Jasmine & Karma • Angular
Karma is a tool which lets us spawn browsers and run Jasmine tests inside of them all from the command line. The results...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found