# Bug nod\_js 16 on Windows

**URL:** <https://travis-ci.community/t/bug-nod-js-16-on-windows/11651>\
**Category:** Travis CI Discussions & Feedback\
**Created:** [May 27, 2021, 11:04am UTC](https://travis-ci.community/t/bug-nod-js-16-on-windows/11651 "2021-05-27T11:04:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PLCHome](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/plchome/32/6646_2.png) [@PLCHome](https://travis-ci.community/u/PLCHome)\
**Post date:** [May 27, 2021, 11:04am UTC](https://travis-ci.community/t/bug-nod-js-16-on-windows/11651/1 "2021-05-27T11:04:34Z")

</div>

This Config works fine on linux and osx. It breaks only on windows and only on version 16:

```auto
  "os": [
    "linux",
    "osx",
    "windows"
  ],
  "language": "node_js",
  "node_js": [
    "16"
  ],

```

It seems that something wrong with the VM:

on linux:

```auto
120> iobroker.growatt@1.1.1 test:unit
121> node_modules/.bin/mocha test/unitAdapter --exit
122
123
124
125 Unit tests
126Unit tests for adapter startup are deprecated!
127If you do not define your own tests, you can remove the "test:unit" script
128from package.json and from your Travis/Github Actions workflow.
129 ✓ DEPRECATED!
130
131
132 1 passing (7ms)
133
134The command "npm run test:unit" exited with 0.
1350.01s$ export DEBUG=testing:*
136The command "export DEBUG=testing:*" exited with 0.
13743.42s$ npm run test:integration
138
139> iobroker.growatt@1.1.1 test:integration
140> node_modules/.bin/mocha test/integrationAdapter --exit
141
142 testing:integration:ControllerSetup Creating ControllerSetup... +0ms

```

on windows:

```auto
80> iobroker.growatt@1.1.1 test:unit
81> node_modules/.bin/mocha test/unitAdapter --exit
82
83The command "npm run test:unit" exited with 1.
840.03s$ export DEBUG=testing:*
85The command "export DEBUG=testing:*" exited with 0.
860.74s$ npm run test:integration
87'node_modules' is not recognized as an internal or external command,
88operable program or batch file.
89
90> iobroker.growatt@1.1.1 test:integration
91> node_modules/.bin/mocha test/integrationAdapter --exit
92
93The command "npm run test:integration" exited with 1.
940.77s$ npm run test:package
95'node_modules' is not recognized as an internal or external command,
96operable program or batch file.
97
98> iobroker.growatt@1.1.1 test:package
99> node_modules/.bin/mocha test/packageFiles --exit
100
101The command "npm run test:package" exited with 1.
1020.77s$ npm run test:unit
103'node_modules' is not recognized as an internal or external command,
104operable program or batch file.
105
106> iobroker.growatt@1.1.1 test:unit
107> node_modules/.bin/mocha test/unitAdapter --exit
108
109The command "npm run test:unit" exited with 1.
1100.03s$ export DEBUG=testing:*
111The command "export DEBUG=testing:*" exited with 0.
1120.79s$ npm run test:integration
113'node_modules' is not recognized as an internal or external command,
114operable program or batch file.
115
116> iobroker.growatt@1.1.1 test:integration
117> node_modules/.bin/mocha test/integrationAdapter --exit
118
119

```

Why is ‘node\_modules’ not recognized only by windows?

[https://travis-ci.com/github/PLCHome/ioBroker.growatt/builds](https://travis-ci.com/github/PLCHome/ioBroker.growatt/builds)  
#50 and #37-#45

---

<div class="post-metadata">

**Author:** ![Montana](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/montana/32/9566_2.png) [@Montana](https://travis-ci.community/u/Montana)\
**Post date:** [May 28, 2021, 8:45am UTC](https://travis-ci.community/t/bug-nod-js-16-on-windows/11651/2 "2021-05-28T08:45:28Z")

</div>

> [@PLCHome](#):
>
> ```auto
> 'node_modules' is not recognized as an internal or external command,
> 114operable program or batch file.
> 
> ```

Try converting the path separators from `/` to `\\` in the `exec` parameter.
