modified: index.js

This commit is contained in:
yeyang
2023-01-14 17:16:56 +08:00
parent 7c84f6280c
commit 6c4e20371e

View File

@@ -14,7 +14,7 @@ try {
await import('systeminformation')
await redis.set('yenai:node_modules', '1')
} catch (error) {
if (error.stack.includes('Cannot find package')) {
if (error.stack?.includes('Cannot find package')) {
logger.warn('--------椰奶依赖缺失--------')
logger.warn(`yenai-plugin 缺少依赖将无法使用 ${logger.yellow('椰奶状态')}`)
logger.warn(`如需使用请运行:${logger.red('pnpm add systeminformation -w')}`)