pzuraq / nombom

nom nom nom
MIT License
11 stars 6 forks source link

Fails on Windows #2

Open BryanCrotaz opened 6 years ago

BryanCrotaz commented 6 years ago
C:\Users\Owner\AppData\Roaming\npm\node_modules\nombom\bin\nom:14
  if (err) throw err;
           ^

Error: Command failed: rm -rf node_modules && npm cache clean && npm install
'rm' is not recognized as an internal or external command,
operable program or batch file.

    at ChildProcess.exithandler (child_process.js:270:12)
    at emitTwo (events.js:125:13)
    at ChildProcess.emit (events.js:213:7)
    at maybeClose (internal/child_process.js:927:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
pzuraq commented 6 years ago

Do you know what the equivalent command to rm -rf would be in Windows shell?

BryanCrotaz commented 6 years ago

rm /s/q

On 3 October 2017 at 16:09, Chris Garrett notifications@github.com wrote:

Do you know what the equivalent command to rm -rf would be in Windows shell?

β€” You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pzuraq/nombom/issues/2#issuecomment-333873286, or mute the thread https://github.com/notifications/unsubscribe-auth/AB7FCzQi5MBoWj6LfMzchQZc5goLXBY8ks5sok48gaJpZM4PdZw- .

-- Bryan Crotaz Managing Director Silver Curve 0758 404 8886

smaudet commented 6 years ago

Would be better to skip the whole external command and just re-use node primitives. e.g. something like rmdir + npm.install

pzuraq commented 6 years ago

Agreed, that’d make it a whole lot simpler. Will update it when I get some time, still swamped at the moment

tbeseda commented 4 years ago

Sorry to resurrect an old issue, but I made a cross-platform version that doesn't worry about Bower and works with Yarn/npm https://github.com/tbeseda/nomyom

I guess the quarantine has me pretty bored 😜
Thanks for the inspiration

pzuraq commented 4 years ago

if you plan on maintaining that, I could officially deprecate this package and point people toward yours πŸ˜„

tbeseda commented 4 years ago

@pzuraq Sure! Mine is fairly straight forward and probably needs little maintenance. I don't work on much OSS, so it's a good opportunity to work on something small. πŸ‘