dominictarr / npmd

MIT License
450 stars 37 forks source link

npmd sync failing #60

Open seflless opened 10 years ago

seflless commented 10 years ago

I'm getting the following error right after install npmd globally and then running npmd sync.

  npmd sync

  /usr/local/lib/node_modules/npmd/plugins/rebuild.js:8
      if(config._[0] !== 'rebuild') return
                 ^
  TypeError: Cannot read property '0' of undefined
      at /usr/local/lib/node_modules/npmd/plugins/rebuild.js:8:16
      at /usr/local/lib/node_modules/npmd/options.js:11:27
      at execCommands (/usr/local/lib/node_modules/npmd/index.js:101:31)
      at Object.<anonymous> (/usr/local/lib/node_modules/npmd/index.js:151:5)
      at Module._compile (module.js:456:26)
      at Object.Module._extensions..js (module.js:474:10)
      at Module.load (module.js:356:32)
      at Function.Module._load (module.js:312:12)
      at Function.Module.runMain (module.js:497:10)
      at startup (node.js:119:16)

Is master broken? I just cloned a few minutes ago.

dominictarr commented 10 years ago

After the v1 rewrite sync isn't used any more. It will be added back in soon (in a different way) what I need here is a better error message.

seflless commented 10 years ago

Ah, k. So I should just roll back for now? Any recommended commit to go back to?

Also: Maybe update this to not mention using 'npmd sync' for now?

dominictarr commented 10 years ago

Either install npmd@1 or npmd@0 I merged the v1 branch into master - it has documentation on how it works now.

dominictarr commented 10 years ago

okay the error message is fixed in 1.0.5