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.

DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.

See original GitHub issue

Expected behaviour

No deprecation warnings show up.

Actual behaviour

DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.

Is printed on any karma run.

Environment Details

  • Karma version: 1.3.0

Steps to reproduce the behaviour

  1. Run karma start (no config needed)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
MPankajAruncommented, Oct 20, 2018

“It’s not really an error, it’s a deprecation warning. You can fix it like, you could just put something like the following at the top of your file: var os = require(‘os’); os.tmpDir = os.tmpdir;”

1reaction
maksimrcommented, Jan 1, 2017

I have checked on macOs

node@7.3.0 karma@1.3.0 karma-chrome-launcher@2.0.0 karma-jasmine@1.1.0

All work whithout warnings

kapture 2017-01-02 at 2 13 57

Read more comments on GitHub >

github_iconTop Results From Across the Web

[DEP0022] DeprecationWarning: os.tmpDir() is deprecated ...
I'm opening this issue because: npm is crashing. npm is producing an incorrect install. npm is doing something I don't understand. npm is ......
Read more >
os.tmpDir() is deprecated - node and formidable
os.tmpDir() is deprecated - node and formidable · It's not really an error, it's a deprecation warning. You can ask the formidable maintainers...
Read more >
os-tmpdir - npm
This package has been deprecated. Author message: This is not needed anymore. `require('os').tmpdir()` in Node.js 4 and up is good.
Read more >
i am trying to install the big commences stencil project . but i ...
(node:19580) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead. C:\Users\uday.repaka\AppData\Roaming\npm\node_modules\@ ...
Read more >
Can not install a module - General - Node-RED Forum
(node: 1916) [DEP0022] DeprecationWarning: os.tmpDir () is deprecated. Use os.tmpdir () instead. Precision: I'm on RPI3 and Debian 9 Stretch.
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