我已经尝试了很长时间才能使它工作。 还检查了每个github的相关信息,但是我的经验不足使我无法执行。 我已经运行了Ubuntu 18.04 Server,并想创建一个RTC(实时协作)应用程序,但要在线输入字段,非常简单。 我设法通过y-js-> include in php并使peer2peer浏览器正常工作。由于这并不适合所有人(4/7人),因此我一直试图与客户端等一起建立中央服务器/ websocket。
现在多数民众赞成在我不能理解这是如何工作的。 希望有人可以提供帮助。 在我的Ubuntu控制台中,我尝试运行
npm install --save yjs y-webrtc y-memory y-map y-array
导致
loadDep:webrtc-adapter → ▄ ╢██████████████████████████████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:webrtc-adapter → ▀ ╢██████████████████████████████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:lodash.istypedarr ▀ ╢███████████████████████████████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
npm WARN deprecated bower@1.8.4: We don't recommend using Bower for new projects. Please consider Yarn and Webpack or Parcel. You can read how to migrate legacy project here: https://bower.io/blog/2017/how-to-migrate-away-from-bower/
> bufferutil@1.2.1 install /root/node_modules/bufferutil
> node-gyp rebuild
gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at getNotFoundError (/usr/lib/nodejs/which/which.js:13:12)
gyp ERR! stack at F (/usr/lib/nodejs/which/which.js:68:19)
gyp ERR! stack at E (/usr/lib/nodejs/which/which.js:80:29)
gyp ERR! stack at /usr/lib/nodejs/which/which.js:89:16
gyp ERR! stack at /usr/lib/nodejs/isexe/index.js:42:5
gyp ERR! stack at /usr/lib/nodejs/isexe/mode.js:8:5
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Linux 4.15.0-43-generic
gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /root/node_modules/bufferutil
gyp ERR! node -v v8.10.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN install:bufferutil@1.2.1 bufferutil@1.2.1 install: `node-gyp rebuild`
npm WARN install:bufferutil@1.2.1 Exit status 1
> utf-8-validate@1.2.2 install /root/node_modules/utf-8-validate
> node-gyp rebuild
gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at getNotFoundError (/usr/lib/nodejs/which/which.js:13:12)
gyp ERR! stack at F (/usr/lib/nodejs/which/which.js:68:19)
gyp ERR! stack at E (/usr/lib/nodejs/which/which.js:80:29)
gyp ERR! stack at /usr/lib/nodejs/which/which.js:89:16
gyp ERR! stack at /usr/lib/nodejs/isexe/index.js:42:5
gyp ERR! stack at /usr/lib/nodejs/isexe/mode.js:8:5
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Linux 4.15.0-43-generic
gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /root/node_modules/utf-8-validate
gyp ERR! node -v v8.10.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN install:utf-8-validate@1.2.2 utf-8-validate@1.2.2 install: `node-gyp rebuild`
npm WARN install:utf-8-validate@1.2.2 Exit status 1
npm WARN saveError ENOENT: no such file or directory, open '/root/package.json'
async-limiter@1.0.0 node_modules/yjs/node_modules/ws/node_modules/async-limiter -> node_modules/async-limiter
/root
├── bower@1.8.4
├── y-leveldb@0.0.3
├── y-map@10.1.3
├─┬ y-websockets-server@9.2.1
│ └── UNMET PEER DEPENDENCY yjs@12.3.3
└── UNMET PEER DEPENDENCY yjs@13.0.0-76
npm WARN enoent ENOENT: no such file or directory, open '/root/package.json'
npm WARN y-array@10.1.4 requires a peer of yjs@>= 12.3.1 < 13.0.0 but none was installed.
npm WARN y-leveldb@0.0.3 requires a peer of yjs@^12.0.0 but none was installed.
npm WARN y-memory@8.0.9 requires a peer of yjs@>= 9.0.0 < 14.0.0 but none was installed.
npm WARN y-text@9.5.1 requires a peer of yjs@>= 12.0.0 < 14.0.0 but none was installed.
npm WARN y-webrtc@8.0.7 requires a peer of yjs@^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 but none was installed.
npm WARN y-map@10.1.3 requires a peer of yjs@>= 12.3.1 < 14.0.0 but none was installed.
npm WARN root No description
npm WARN root No repository field.
npm WARN root No README data
npm WARN root No license field.
不幸的是,我对这意味着什么一无所知。
如果我们能一起工作,我会很高兴。