Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix# 143 - EPERM error in Windows #144

Merged
merged 4 commits into from
Sep 9, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Style changes..
  • Loading branch information
Steven McDowall committed Sep 9, 2015
commit d3456f0c5c07268501884230ce66069a0c78ba16
6 changes: 3 additions & 3 deletions lib/update-package.js
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@ module.exports = function (options, done) {
// Change the file permissions so we can over-write the package. Then we'll write the package
// and then change the file permissions back to read-only.
//
Fs.chmodSync( packagePath, "0644" ) ;
Fs.writeFile( packagePath, JSON.stringify(packageContents, null, 2), done);
Fs.chmodSync( packagePath, "0444" ) ;
Fs.chmodSync(packagePath, '0644') ;
Fs.writeFile(packagePath, JSON.stringify(packageContents, null, 2), done);
Fs.chmodSync(packagePath, '0444') ;
};