mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Improve meteor-installer:
- Change warning message, process.getguid is not reliable when not using --unsafe-perm
This commit is contained in:
committed by
filipenevola
parent
e8dccac909
commit
899ecfd243
@@ -58,13 +58,15 @@ let tempDirObject;
|
||||
try{
|
||||
tempDirObject = tmp.dirSync();
|
||||
} catch(e){
|
||||
console.error("****************************")
|
||||
console.error("Couldn't create tmp dir for extracting meteor.")
|
||||
if(isRoot()){
|
||||
console.error("-- \tYou are running npm install -g meteor as root without passing the --unsafe-perm option. Please rerun with this option enabled.\t --")
|
||||
}else {
|
||||
console.error("-- \tA possible cause is that you might not have enough space in disk or permission to create folders\t --")
|
||||
}
|
||||
console.error("****************************");
|
||||
console.error("Couldn't create tmp dir for extracting meteor.");
|
||||
console.error("There are 2 possible causes:");
|
||||
console.error(
|
||||
'\t1. You are running npm install -g meteor as root without passing the --unsafe-perm option. Please rerun with this option enabled.'
|
||||
);
|
||||
console.error(
|
||||
'\t2. You might not have enough space in disk or permission to create folders'
|
||||
);
|
||||
console.error("****************************")
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "meteor",
|
||||
"version": "2.5.1-beta.4",
|
||||
"version": "2.5.1-beta.5",
|
||||
"description": "Install Meteor on Windows",
|
||||
"main": "install.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user