title: Maven ERR_INVALID_CALLBACK(
body: <p>I have installed JDK and set up the home variable:</p>
  
  <pre><code>C:\Workspace\ProjectFolder&gt;echo %JAVA_HOME%
  C:\Program Files\Java\jdk-11.0.6
  </code></pre>
  
  <p>Then i have done:</p>
  
  <pre><code>npm install maven -g
  </code></pre>
  
  <p>Info about the NODE:</p>
  
  <pre><code>C:\Workspace\ProjectFolder&gt;node --version
  v10.16.3
  </code></pre>
  
  <p>Okay, lets see the info about MAVEN:</p>
  
  <pre><code>C:\Workspace\ProjectFolder&gt;mvn --version
  fs.js:136
      throw new ERR_INVALID_CALLBACK();
      ^
  
  TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
      at makeCallback (fs.js:136:11)
      at Object.mkdir (fs.js:726:14)
      at Object.target.init (C:\Users\MyUSER\AppData\Roaming\npm\node_modules\mvn\target.js:25:10)
      at Object.&lt;anonymous&gt; (C:\Users\MyUSER\AppData\Roaming\npm\node_modules\mvn\target.js:39:8)
      at Module._compile (internal/modules/cjs/loader.js:778:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
      at Module.load (internal/modules/cjs/loader.js:653:32)
      at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
      at Function.Module._load (internal/modules/cjs/loader.js:585:3)
      at Module.require (internal/modules/cjs/loader.js:692:17)
  </code></pre>
  
  <p>What is wrong?</p>