StreamerHelper icon indicating copy to clipboard operation
StreamerHelper copied to clipboard

直接配置下 运行npm run serve出现错误

Open daxianghrh opened this issue 2 years ago • 0 comments

hrh@hrh-ubuntu:~/StreamerHelper$ npm run serve

[email protected] serve /home/hrh/StreamerHelper npm run build && pm2 start ./dist/index.js

[email protected] build /home/hrh/StreamerHelper tsc --project tsconfig.json && tsc-alias -p tsconfig.json

internal/modules/cjs/loader.js:638 throw err; ^

Error: Cannot find module 'worker_threads' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at m (/home/hrh/StreamerHelper/node_modules/mylas/build/index.js:1:852) at /home/hrh/StreamerHelper/node_modules/mylas/build/index.js:1:35 at O (/home/hrh/StreamerHelper/node_modules/mylas/build/index.js:1:1366) at /home/hrh/StreamerHelper/node_modules/mylas/build/index.js:1:35 at Object. (/home/hrh/StreamerHelper/node_modules/mylas/build/index.js:3:6056) at Module._compile (internal/modules/cjs/loader.js:778:30) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] build: tsc --project tsconfig.json && tsc-alias -p tsconfig.json npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/hrh/.npm/_logs/2022-08-08T03_03_08_091Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] serve: npm run build && pm2 start ./dist/index.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] serve script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/hrh/.npm/_logs/2022-08-08T03_03_08_098Z-debug.log

daxianghrh avatar Aug 08 '22 03:08 daxianghrh