You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installing cash-global won't work properly in any OS whose language isn't English. That seems to be because of the test for the "Could not find" output of the where command in the bin/preinstall.js returning false positives in other languages.
I couldn't find it in the original source code though but I certainly don't actually have a grasp of the projects bigger structure.
For example the failing output of where in my German Windows looks like this
INFORMATION: Es konnten keine Dateien mit dem angegebenen Muster gefunden werden.
I'd suggest using the npm which package instead since it's going to be included in the application anyways according to #71.
The text was updated successfully, but these errors were encountered:
'use strict';varfs=require('fs');varos=require('os');varpath=require('path');varexecSync=require('child_process').execSync;varcommands=require(__dirname+path.sep+'..'+path.sep+'commands.json');varmute=require('./mute');varpth='.'+path.sep+'package.json';varfile=fs.readFileSync(pth,'utf8');varjson=JSON.parse(file);json.bin=json.bin||{};// Shut the fuck up.mute();// These commands shouldn't be installed// globally on Windows.varexclusions=commands.globalExclusions;varstdout='';for(vari=0;i<commands.commands.length;++i){varcommand=commands.commands[i];varexcluded=(exclusions.indexOf(command)>-1);if(os.platform().indexOf('win')>-1&&!excluded){try{execSync(`where ${command}`,{stdio: []});stdout+='Command exists: '+command+'\n';}catch(e){json.bin[command]='./bin/'+command+'.js';stdout+='Installed: '+command+'\n';}}}// Write the updated json.fs.writeFileSync(pth,JSON.stringify(json,null,' '));// Remove the muzzle and print my // version of the stdout.mute.unmute();console.log(stdout);
Installing
cash-global
won't work properly in any OS whose language isn't English. That seems to be because of the test for the "Could not find" output of thewhere
command in thebin/preinstall.js
returning false positives in other languages.I couldn't find it in the original source code though but I certainly don't actually have a grasp of the projects bigger structure.
For example the failing output of
where
in my German Windows looks like thisI'd suggest using the npm
which
package instead since it's going to be included in the application anyways according to #71.The text was updated successfully, but these errors were encountered: