mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
18 lines
542 B
JavaScript
18 lines
542 B
JavaScript
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
function main() {
|
|
const target = path.resolve(__dirname, '..', 'node_modules', 'v-code-diff', 'package.json');
|
|
|
|
if (!fs.existsSync(target)) {
|
|
console.error(
|
|
'[v-code-diff] missing dependency.\n' +
|
|
' npm install did not place v-code-diff under node_modules.\n' +
|
|
' Fix: cd main/manager-web && npm install v-code-diff@^1.16.0\n' +
|
|
' Ref: https://github.com/xinnan-tech/xiaozhi-esp32-server/issues/3389'
|
|
);
|
|
process.exit(1);
|
|
}
|
|
}
|
|
|
|
main();
|