Created
June 17, 2011 13:11
-
-
Save JasonGiedymin/1031386 to your computer and use it in GitHub Desktop.
Fixing Node.JS NPM "--no-same-owner" errors in Cygwin.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this! Hopefully, a native windows version of node and npm is in our future.