diff --git a/lib/install/save.js b/lib/install/save.js index 7227e78852ac7..471cb8dc07fd7 100644 --- a/lib/install/save.js +++ b/lib/install/save.js @@ -13,7 +13,6 @@ const path = require('path') const stringifyPackage = require('stringify-package') const validate = require('aproba') const without = require('lodash.without') -const writeFileAtomic = require('write-file-atomic') // if the -S|--save option is specified, then write installed packages // as dependencies to a package.json file. @@ -129,7 +128,7 @@ function savePackageJson (tree, next) { log.verbose('shrinkwrap', 'skipping write for package.json because there were no changes.') next() } else { - writeFileAtomic(saveTarget, json, next) + fs.writeFile(saveTarget, json, next) } })) }