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

Created on 6 Dec 2016  路  5Comments  路  Source: angular/protractor

Bug report

  • Node Version: v7.0.0
  • Protractor Version: Version 4.0.11
  • Angular Version: 2.1.0
  • Browser(s): Chrome
  • Operating System and Version Windows 10

When I run the command protractor I get the following warning:
DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.

I'm using angular-cli:
angular-cli: 1.0.0-beta.20-4
node: 7.0.0
os: win32 x64

Maybe there is already a fix for this warning? It's not breaking and it's working but couldn't find a solution on stackoverflow or anywhere online.

needs investigation

Most helpful comment

It looks like users are still getting this error consistently (Nov 2017): https://github.com/angular/protractor/issues?utf8=%E2%9C%93&q=os.tmpdir
In our project we get this error. Unsure if relevant, but we're on

  • Node 9.2.0 (error occurs with 8.9.1 and others)
  • Protractor 5.2.0

All 5 comments

Initial code search of os.tmpdir in protractor:

There are no cases of os.tmpDir. It could be a dependency we are using...and will grep it later today.

The only dependency currently using os.tmpDir in master is the [email protected] dependency [email protected]. Taking a look at the beta branch, there are no uses of os.tmpDir.

It looks like users are still getting this error consistently (Nov 2017): https://github.com/angular/protractor/issues?utf8=%E2%9C%93&q=os.tmpdir
In our project we get this error. Unsure if relevant, but we're on

  • Node 9.2.0 (error occurs with 8.9.1 and others)
  • Protractor 5.2.0

I've created a new issue to track this specific warning. Should be easier to track an maybe we'll get more luck maintainers noticing it this way... https://github.com/angular/protractor/issues/4657

Update npm: It will work

sudo npm i -g npm
Was this page helpful?
0 / 5 - 0 ratings