Skip to content

Instantly share code, notes, and snippets.

@JasonGiedymin
Created June 17, 2011 13:11
Show Gist options
  • Save JasonGiedymin/1031386 to your computer and use it in GitHub Desktop.
Save JasonGiedymin/1031386 to your computer and use it in GitHub Desktop.
Fixing Node.JS NPM "--no-same-owner" errors in Cygwin.
# File is named as '.sh' for highlighting. Don't actually run this (hash bang removed).
#
# First of all, you should stop using cygwin and just use a VM or install linux.
# By continuing you acknowledge the fact your a nut. :-D
#
# If your having errors with Cygwin and NPM install packages such as:
# npm ERR! tar "-mvxpf" "-" "--no-same-owner"
#
# Do the following:
#1. Blow the tmp directory away
rm -R /tmp/*
#2. Clear npm's cache
npm cache clean
#3. Exit out of your current shell and start a dash shell up (from in cygwin/bin)
#4. Execute the rebaseall command.
rebaseall -v
#5. Exit out and restart a new bash shell.
#6. Try your npm command again.
npm install <package>
@isaacs
Copy link

isaacs commented Jun 17, 2011

Thanks for this! Hopefully, a native windows version of node and npm is in our future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment