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
It could be helpful to check if there are the correct package manager is used.
For that, a script like this could help:
import{existsSync}from'node:fs';constcheckLockFiles=(): string[]=>{constuesYarnLockFileMessage='Please remove it and use only "pnpm-lock.yaml".';constinvalidFileMessage=(lockFile: string): string=>`Invalid occurrence of "${lockFile}" file. ${uesYarnLockFileMessage}`;consterrors: string[]=[];constnpmLockFile='package-lock.json';existsSync(npmLockFile)&&errors.push(invalidFileMessage(npmLockFile));constyarnLockFile='yarn.lock';existsSync(yarnLockFile)&&errors.push(invalidFileMessage(yarnLockFile));constpnpmLockFile='pnpm-lock.yaml';!existsSync(pnpmLockFile)&&errors.push('The "pnpm-lock.yaml" does not exist or cannot be read. Please run "pnpm i".');returnerrors;};constinvalidLockFileErrors=checkLockFiles();if(invalidLockFileErrors.length>0){for(consterrorofinvalidLockFileErrors)console.log(error);process.exit(1);}process.exit(0);
The text was updated successfully, but these errors were encountered:
It could be helpful to check if there are the correct package manager is used.
For that, a script like this could help:
The text was updated successfully, but these errors were encountered: