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
@@ -45,7 +45,7 @@ function findPackageManager(base: string): ?string {
45
45
46
46
letdata;
47
47
try{
48
-
data=JSON.parse(fs.readFileSync(p));
48
+
data=JSON.parse(fs.readFileSync(p,`utf8`));
49
49
}catch(err){}
50
50
51
51
if(data&&typeofdata.packageManager===`string`){
@@ -303,12 +303,14 @@ export async function main({
303
303
process.stderr.write(
304
304
`Presence of the ${chalk.gray(
305
305
`"packageManager"`,
306
+
// eslint-disable-next-line max-len
306
307
)} field indicates that the project is meant to be used with Corepack, a tool included by default with all official Node.js distributions starting from 16.9 and 14.19.\n`,
307
308
);
308
309
309
310
process.stderr.write(
310
311
`Corepack must currently be enabled by running ${chalk.magenta(
311
312
`corepack enable`,
313
+
// $FlowIgnore
312
314
)} in your terminal. For more information, check out ${chalk.blueBright(`https://yarnpkg.com/corepack`)}.\n`,
0 commit comments