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.

Auto-Launch not working when run from npm

See original GitHub issue

I just updated to Node 5.0.0 with NPM 3.3.6. I’m running on OSX 10.10.5 (Yosemite)

I have a “test” script defined in my project.json:

"scripts": {
    "test": "testem",
    "test-ci": "testem ci --port 17357"
  }

So when I run npm test, it starts testem.

The problem is that my launch_in_dev browser (Chrome) is not auto-run. Even if I call it out explicitly: "test": "testem -l Chrome", the browser does not auto-launch. Testem DOES start, but the browser does not. I can run it by hand, and that works. It’s just odd.

Running the tests by hand: ./node_modules/.bin/testem DOES work… it just seems like this use case is being blocked. And, this used to work (node 0.12 + NPM 2).

Does anyone know a workaround? I try to avoid installing testem globally and prefer to do everything via npm run commands.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:23 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
rupurtcommented, Sep 14, 2016

I figured out a way to get a similar workflow to ember-cli #980

0reactions
johanneswuerbachcommented, Nov 5, 2016

This should be resolve in the latest master.

Read more comments on GitHub >

github_iconTop Results From Across the Web

auto-launch - npm
Start using auto-launch in your project by running `npm i auto-launch`. There are 45 other projects in the npm registry using auto-launch.
Read more >
How to use auto-launch to start app on system startup?
But, I want to run it on windows startup. I got to know about auto-launch. But, I'm not sure how to use it...
Read more >
cozy-auto-launch - npm Package Health Analysis - Snyk
Ensure you're using the healthiest npm packages. Snyk scans all the packages in your projects for vulnerabilities and provides automated fix ...
Read more >
Autostarting NodeJS Apps — Devilbox 1.0 documentation
Once the Devilbox is running, you can enter the PHP container and verify ... The following script is provided in autostart/run-node-js-projects.sh-example ...
Read more >
How to auto-start electron applications on startup
To solve this problem I tried various methods and none of them ... npm install auto-launch ... var AutoLaunch = require('auto-launch');.
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