Comments (4)
Try to reinstall dependencies with npm ci
Native modules are not compatible between major node.js versions.
from ws-scrcpy.
Try to reinstall dependencies with
npm ci
Native modules are not compatible between major node.js versions.
this solve problem, i able to start project, thanks, best regards.
from ws-scrcpy.
Hi.
Your node v12.22.12
is too old. Please try with a newer version.
from ws-scrcpy.
hi, i updated nodejs to 18 version, but this not solve problem.
current error log:
root@linux:/home/user/ws-scrcpy# npm start
> [email protected] start
> npm run dist && cd dist && npm start
> [email protected] dist
> npm run dist:prod
> [email protected] dist:prod
> webpack --config webpack/ws-scrcpy.prod.ts --stats-error-details
assets by status 6.36 KiB [cached] 2 assets
assets by status 1.02 MiB [compared for emit]
assets by path *.js 890 KiB
asset bundle.js 720 KiB [compared for emit] [minimized] [big] (name: main) 1 related asset
asset bundle.worker.js 170 KiB [compared for emit] [minimized]
asset avc.wasm 130 KiB [compared for emit] [from: vendor/Broadway/avc.wasm.asset] (auxiliary name: main)
asset main.css 23.8 KiB [compared for emit] (name: main)
asset index.html 313 bytes [compared for emit]
Entrypoint main [big] 744 KiB (136 KiB) = main.css 23.8 KiB bundle.js 720 KiB 3 auxiliary assets
orphan modules 34.6 KiB (javascript) 6.44 KiB (runtime) [orphan] 43 modules
runtime modules 1.72 KiB 5 modules
javascript modules 1.05 MiB
modules by path ./src/ 400 KiB 100 modules
modules by path ./node_modules/ 597 KiB 26 modules
modules by path ./vendor/ 81.1 KiB 21 modules
external "fs" 42 bytes [built] [code generated]
css modules 23.7 KiB
css ./node_modules/css-loader/dist/cjs.js!./src/style/app.css 4.12 KiB [built] [code generated]
css ./node_modules/css-loader/dist/cjs.js!./src/style/devicelist.css 4.82 KiB [built] [code generated]
css ./node_modules/css-loader/dist/cjs.js!./node_modules/xterm/css/xterm.css 4.3 KiB [built] [code generated]
css ./node_modules/css-loader/dist/cjs.js!./src/style/devtools.css 2.04 KiB [built] [code generated]
css ./node_modules/css-loader/dist/cjs.js!./src/style/filelisting.css 4.97 KiB [built] [code generated]
css ./node_modules/css-loader/dist/cjs.js!./src/style/morebox.css 701 bytes [built] [code generated]
css ./node_modules/css-loader/dist/cjs.js!./src/style/dialog.css 2.82 KiB [built] [code generated]
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
bundle.js (720 KiB)
WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
main (744 KiB)
main.css
bundle.js
WARNING in webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/
webpack 5.76.0 compiled with 3 warnings in 25506 ms
assets by chunk 123 KiB (auxiliary name: main)
asset vendor/Genymobile/scrcpy/scrcpy-server.jar 110 KiB [compared for emit] [from: vendor/Genymobile/scrcpy/scrcpy-server.jar] (auxiliary name: main)
asset vendor/Genymobile/scrcpy/LICENSE 11.1 KiB [compared for emit] [from: vendor/Genymobile/scrcpy/LICENSE] (auxiliary name: main)
asset LICENSE 1.03 KiB [compared for emit] [from: LICENSE] (auxiliary name: main)
asset index.js 84.6 KiB [compared for emit] [minimized] (name: main)
asset package.json 423 bytes [compared for emit]
runtime modules 697 bytes 4 modules
cacheable modules 189 KiB
modules by path ./src/server/ 144 KiB 28 modules
modules by path ./src/common/*.ts 6.32 KiB 7 modules
modules by path ./src/packages/multiplexer/*.ts 21.7 KiB 7 modules
modules by path ./src/app/ 17.2 KiB 4 modules
modules by path ./vendor/Genymobile/scrcpy/ 162 bytes 2 modules
+ 2 modules
modules by path external "@dead50f7/adbkit/lib/ 210 bytes
external "@dead50f7/adbkit/lib/adb/protocol" 42 bytes [built] [code generated]
external "@dead50f7/adbkit/lib/adb" 42 bytes [built] [code generated]
external "@dead50f7/adbkit/lib/adb/sync/entry" 42 bytes [built] [code generated]
external "@dead50f7/adbkit/lib/adb/client" 42 bytes [built] [code generated]
external "@dead50f7/adbkit/lib/adb/command" 42 bytes [built] [code generated]
+ 18 modules
webpack 5.76.0 compiled successfully in 17040 ms
> [email protected] start
> node ./index.js
innerError Error: Cannot find module '../build/Debug/pty.node'
Require stack:
- /home/user/ws-scrcpy/node_modules/node-pty/lib/unixTerminal.js
- /home/user/ws-scrcpy/node_modules/node-pty/lib/index.js
- /home/user/ws-scrcpy/dist/index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
at Module._load (node:internal/modules/cjs/loader:922:27)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:121:18)
at Object.<anonymous> (/home/user/ws-scrcpy/node_modules/node-pty/lib/unixTerminal.js:30:15)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:121:18)
at Object.<anonymous> (/home/user/ws-scrcpy/node_modules/node-pty/lib/index.js:13:20)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/user/ws-scrcpy/node_modules/node-pty/lib/unixTerminal.js',
'/home/user/ws-scrcpy/node_modules/node-pty/lib/index.js',
'/home/user/ws-scrcpy/dist/index.js'
]
}
libnode.so.72: cannot open shared object file: No such file or directory
Received signal 1
root@linux:/home/user/ws-scrcpy# node -v
v18.17.1
root@linux:/home/user/ws-scrcpy# npm -v
9.6.7
from ws-scrcpy.
Related Issues (20)
- REQUEST HELP - With spread action from one to multiple devices
- "createSetClipboardCommand" HOT 2
- issues with Android 14 HOT 8
- 这么传文件啊,就只有浏览器打开adb怎么连接 HOT 2
- TS2344: Type 'TE' does not satisfy the constraint 'EventMap'.
- Not able to use Remotely HOT 1
- Not be able to start app
- [StreamReceiver]. WS closed unexpectedly after a while HOT 1
- Cannot display adb connected devices HOT 1
- can't configure stream HOT 6
- Firefox exhibits lag when using player=mse (H264 Converter)
- can not restart device scrcpy server via adb wifi connection
- Issue with Android 14 display in pixel device HOT 4
- Server exited: [server] ERROR: The server version (2.4) does not match the client (1.19-ws5) HOT 1
- Fixed screen orientation
- Can you support audio with scrcpy
- Android 15 support HOT 2
- termux 安装错误
- ubuntu24 错误
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ws-scrcpy.