Error after running pnpm build #16003
Answered
by
CharlesMingus19
CharlesMingus19
asked this question in
Q&A
-
Routes
Full routes
Related documentationhttps://docs.rsshub.app/deploy/ What is expected?I ran pnpm build after installing dependencies What is actually happening?Getting error: Deployment informationSelf-hosted Deployment information (for self-hosted)"node":"v21.7.3","pnpm":"9.4.0" Additional inforoot@DietPi:~/RSSHub# pnpm build
WARN Unsupported engine: wanted: {"node":">=22"} (current: {"node":"v21.7.3","pnpm":"9.4.0"})
> [email protected] build /root/RSSHub
> tsx scripts/workflow/build-routes.ts
/root/RSSHub/node_modules/.pnpm/[email protected]/node_modules/googleapis/build/src/apis/walletobjects/v1.js:13
QU
^
SyntaxError: Invalid or unexpected token
at internalCompileFunction (node:internal/vm:128:18)
at wrapSafe (node:internal/modules/cjs/loader:1279:20)
at Module._compile (node:internal/modules/cjs/loader:1331:27)
at Object.transformer (/root/RSSHub/node_modules/.pnpm/[email protected]/node_modules/tsx/dist/register-BujtrvNV.cjs:2:1265)
at Module.load (node:internal/modules/cjs/loader:1205:32)
at Module._load (node:internal/modules/cjs/loader:1021:12)
at Module.require (node:internal/modules/cjs/loader:1230:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (/root/RSSHub/node_modules/.pnpm/[email protected]/node_modules/googleapis/build/src/apis/walletobjects/index.js:18:14)
at Module._compile (node:internal/modules/cjs/loader:1368:14)
at Object.transformer (/root/RSSHub/node_modules/.pnpm/[email protected]/node_modules/tsx/dist/register-BujtrvNV.cjs:2:1265)
at Module.load (node:internal/modules/cjs/loader:1205:32)
at Module._load (node:internal/modules/cjs/loader:1021:12)
at Module.require (node:internal/modules/cjs/loader:1230:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (/root/RSSHub/node_modules/.pnpm/[email protected]/node_modules/googleapis/build/src/apis/index.js:296:25)
at Module._compile (node:internal/modules/cjs/loader:1368:14)
at Object.transformer (/root/RSSHub/node_modules/.pnpm/[email protected]/node_modules/tsx/dist/register-BujtrvNV.cjs:2:1265)
at Module.load (node:internal/modules/cjs/loader:1205:32)
at Module._load (node:internal/modules/cjs/loader:1021:12)
at Module.require (node:internal/modules/cjs/loader:1230:19)
at require (node:internal/modules/helpers:179:18) {
includeSubdirectories: true,
importMode: 'sync',
importPattern: /\.ts$/,
limit: Infinity,
callerFilePath: '/root/RSSHub/lib/registry.ts',
callerDirectoryPath: '/root/RSSHub/lib',
targetDirectoryPath: '/root/RSSHub/lib/routes',
callback: undefined
}
Node.js v21.7.3
ELIFECYCLE Command failed with exit code 1. This is not a duplicated issue
|
Beta Was this translation helpful? Give feedback.
Answered by
CharlesMingus19
Jun 28, 2024
Replies: 1 comment 3 replies
-
Can't repro. gitpod /workspace/RSSHub (master) $ pnpm build
WARN Unsupported engine: wanted: {"node":">=22"} (current: {"node":"v21.7.3","pnpm":"9.4.0"})
> [email protected] build /workspace/RSSHub
> tsx scripts/workflow/build-routes.ts
(node:10887) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
gitpod /workspace/RSSHub (master) $ Please remove node_modules folder and try again: rm -rf node_modules
pnpm i
pnpm build |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I managed to fix it.
Had to delete the RSSHub folder and redo the whole deployment process