title: path.js:1086 Error: ENOENT: no such file or directory, uv_cwd
body: <p>I was following the Webpack guide and get stuck <a href="https://webpack.js.org/guides/development/#using-source-maps" rel="noreferrer">here</a> while running <code>npm run build</code> I received the this error:</p>
  
  <pre><code>path.js:1086
            cwd = process.cwd();
                          ^
  
  Error: ENOENT: no such file or directory, uv_cwd
      at Object.resolve (path.js:1086:25)
      at Function.Module._resolveLookupPaths (internal/modules/cjs/loader.js:479:17)
      at Function.Module._resolveFilename (internal/modules/cjs/loader.js:587:20)
  </code></pre>
  
  <p>I checked all imports and everything is looking fine. Than I thought is should caching issue so I ran <code>npm cache clean -f</code> surprisingly I get the exact same error. Probably it is <strong>NodeJS</strong> problem but I have no idea how to debug it. </p>
  
  <p>Here is my file structure:</p>
  
  <p><a href="https://i.stack.imgur.com/cfFvE.png" rel="noreferrer"><img src="https://i.stack.imgur.com/cfFvE.png" alt="enter image description here"></a></p>
  
  <p><strong>package.json</strong></p>
  
  <pre><code>{
    "name": "test_webpack",
    "version": "1.0.0",
    "description": "",
    "private": true,
    "scripts": {
      "test": "echo \"Error: no test specified\" &amp;&amp; exit 1",
      "build": "webpack"
    },
    "keywords": [],
    "author": "",
    "license": "ISC",
    "devDependencies": {
      "clean-webpack-plugin": "^1.0.0",
      "css-loader": "^1.0.1",
      "csv-loader": "^3.0.2",
      "file-loader": "^2.0.0",
      "html-webpack-plugin": "^3.2.0",
      "style-loader": "^0.23.1",
      "webpack": "^4.25.1",
      "webpack-cli": "^3.1.2",
      "xml-loader": "^1.2.1"
    },
    "dependencies": {
      "lodash": "^4.17.11"
    }
  }
  </code></pre>
  
  <p><strong>webpack.config.js</strong></p>
  
  <pre><code>const path = require('path');
  const HtmlWebpackPlugin = require('html-webpack-plugin')
  const CleanWebpackPlugin = require('clean-webpack-plugin')
  
  module.exports = {
    mode: 'development',
    entry: {
      app: './src/index.js',
      print: './src/print.js',
      sec: './src/secondClick.js'
    },
    devtool: 'inline-source-map',
    plugins: [
      new CleanWebpackPlugin(['dist']),
      new HtmlWebpackPlugin({
        titile: "Output manager from webpack n12"
      })
    ],
    output: {
      filename: '[name].bundle.js',
      path: path.resolve(__dirname, 'dist')
    }
  };
  </code></pre>