13 lines
235 B
TypeScript
13 lines
235 B
TypeScript
|
import lockfile from "../package-lock.json";
|
||
|
|
||
|
if (lockfile.lockfileVersion !== 2) {
|
||
|
console.error(
|
||
|
`
|
||
|
Please upgrade to npm v7 and revert changes to the lockfile.
|
||
|
|
||
|
- \`npm i -g npm\` to upgrade.
|
||
|
`.trim()
|
||
|
);
|
||
|
process.exit(1);
|
||
|
}
|