mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Return early if fs-plus is not installed
This commit is contained in:
@@ -31,8 +31,15 @@ function readEnvironmentVariables() {
|
||||
}
|
||||
|
||||
function removeNodeModules() {
|
||||
var fsPlus;
|
||||
try {
|
||||
require('fs-plus').removeSync(path.resolve(__dirname, '..', 'node_modules'));
|
||||
fsPlus = require('fs-plus');
|
||||
} catch (error) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
fsPlus.removeSync(path.resolve(__dirname, '..', 'node_modules'));
|
||||
} catch (error) {
|
||||
console.error(error.message);
|
||||
process.exit(1);
|
||||
|
||||
Reference in New Issue
Block a user