title: Module is extraneous npm
body: <p>I've checked that the <code>connect-privkey-to-provider</code> module is in the dependencies. However, it keeps saying <em><strong>Module 'connect-privkey-to-provider' is extraneous npm</strong></em> and <em><strong>cannot find module 'connect-privkey-to-provider'</strong></em>.</p>
  <p>What's wrong with my code?</p>
  <blockquote>
  <p>PS C:\Users\1Sun\addition-game-starter&gt; truffle deploy --network
  klaytn
  <strong>Error: Cannot find module 'connect-privkey-to-provider'</strong>
  at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
  at Function.Module._load (internal/modules/cjs/loader.js:508:25)
  at Module.require (internal/modules/cjs/loader.js:637:17)
  at require (internal/modules/cjs/helpers.js:22:18)
  at Object. (C:\Users\1Sun\addition-game-starter\truffle.js:2:29)
  at Module._compile (internal/modules/cjs/loader.js:701:30)
  at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
  at Module.load (internal/modules/cjs/loader.js:600:32)
  at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
  at Function.Module._load (internal/modules/cjs/loader.js:531:3)
  at Module.require (internal/modules/cjs/loader.js:637:17)
  at require (internal/modules/cjs/helpers.js:22:18)
  at Function.Config.load (C:\Users\1Sun\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\truffle-config\index.js:254:1)
  at Function.Config.detect (C:\Users\1Sun\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\truffle-config\index.js:243:1)
  at Object.run (C:\Users\1Sun\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\truffle-core\lib\commands\migrate.js:35:1)
  at Command.run (C:\Users\1Sun\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\truffle-core\lib\command.js:101:1)
  at Object. (C:\Users\1Sun\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\truffle-core\cli.js:22:1)
  at <strong>webpack_require</strong> (C:\Users\1Sun\AppData\Roaming\npm\node_modules\truffle\build\webpack:\webpack\bootstrap
  0791995565e53f633c90:19:1)
  at C:\Users\1Sun\AppData\Roaming\npm\node_modules\truffle\build\webpack:\webpack\bootstrap
  0791995565e53f633c90:65:1
  at Object. (C:\Users\1Sun\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:71:10)
  at Module._compile (internal/modules/cjs/loader.js:701:30)</p>
  </blockquote>
  <hr />
  <p><strong>package.json</strong></p>
  <pre><code>{
    &quot;name&quot;: &quot;klay-dapp-boilerplate&quot;,
    &quot;version&quot;: &quot;0.0.1&quot;,
    &quot;description&quot;: &quot;boilerplate for klaytn-based app&quot;,
    &quot;main&quot;: &quot;truffle.js&quot;,
    &quot;scripts&quot;: {
      &quot;build&quot;: &quot;webpack&quot;,
      &quot;dev&quot;: &quot;webpack-dev-server&quot;
    },
    &quot;dependencies&quot;: {
      &quot;caver-js&quot;: &quot;^0.0.2-m&quot;,
      &quot;connect-privkey-to-provider&quot;: &quot;^0.0.3&quot;,
      &quot;spin.js&quot;: &quot;^4.0.0&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;copy-webpack-plugin&quot;: &quot;^4.6.0&quot;,
      &quot;eslint&quot;: &quot;^4.19.1&quot;,
      &quot;webpack&quot;: &quot;^4.7.0&quot;,
      &quot;webpack-cli&quot;: &quot;^3.1.1&quot;,
      &quot;webpack-dev-server&quot;: &quot;^3.1.4&quot;
    },
    &quot;eslintConfig&quot;: {
      &quot;env&quot;: {
        &quot;browser&quot;: true,
        &quot;node&quot;: true
      }
    }
  }
  </code></pre>
  <hr />
  <p><strong>truffle.js</strong></p>
  <pre><code>// truffle.js config for klaytn.
  const PrivateKeyConnector = require('connect-privkey-to-provider')
  const NETWORK_ID = '1001'
  const GASLIMIT = '20000000'
  const URL ='https://api.baobab.klaytn.net:8651'
  const PRIVATE_KEY = '0x80ea7e298ba2cbf484e6c0c0703ccf2ea94be7f8a1a097fc013042b4888a2e80'
  
  module.exports = {
      networks: {
          klaytn: {
              provider: new PrivateKeyConnector(PRIVATE_KEY, URL),
              network_id: NETWORK_ID,
              gas: GASLIMIT,
              gasPrice: null,
          }
      }
  }
  </code></pre>
  <p><strong>Error</strong></p>
  <p><a href="https://i.stack.imgur.com/ndWvE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ndWvE.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/tJ4PU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tJ4PU.png" alt="enter image description here" /></a></p>