Contact me: hankecnc@gmail.com

编译问题/依赖 #695

推推 grbl 3年前 (2023-02-03) 331次浏览
打开
4 个任务中的第 3 个
给定 打开了这个问题 2021 年 4 月 13 日 · 2 条评论
打开
4 个任务中的第 3 个

编译问题/依赖#695

给定 打开了这个问题 2021 年 4 月 13 日 · 2 条评论

注释

编译问题/依赖 #695

描述

主要编译问题

npm WARN ERESOLVE overriding peer dependency
npm WARN Found: react@15.6.2
npm WARN node_modules/cncjs/node_modules/react
npm WARN   react@"~15.6.2" from cncjs@1.9.22
npm WARN   node_modules/cncjs
npm WARN     cncjs@"1.9.22" from the root project
npm WARN   29 more (@trendmicro/react-anchor, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer react@">= 16.8.0" from react-i18next@10.7.0
npm WARN node_modules/cncjs/node_modules/react-i18next
npm WARN   react-i18next@"~10.7.0" from cncjs@1.9.22
npm WARN   node_modules/cncjs
npm WARN ERESOLVE overriding peer dependency
npm WARN Found: react@15.6.2
npm WARN node_modules/cncjs/node_modules/react
npm WARN   react@"~15.6.2" from cncjs@1.9.22
npm WARN   node_modules/cncjs
npm WARN     cncjs@"1.9.22" from the root project
npm WARN   29 more (@trendmicro/react-anchor, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.0.0" from react-datepicker@1.5.0
npm WARN node_modules/cncjs/node_modules/@trendmicro/react-datepicker/node_modules/react-datepicker
npm WARN   react-datepicker@"~1.5.0" from @trendmicro/react-datepicker@1.0.0-alpha.7
npm WARN   node_modules/cncjs/node_modules/@trendmicro/react-datepicker
npm WARN ERESOLVE overriding peer dependency
npm WARN Found: react@15.6.2
npm WARN node_modules/cncjs/node_modules/react
npm WARN   react@"~15.6.2" from cncjs@1.9.22
npm WARN   node_modules/cncjs
npm WARN     cncjs@"1.9.22" from the root project
npm WARN   29 more (@trendmicro/react-anchor, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.0.0" from react-datepicker@1.5.0
npm WARN node_modules/cncjs/node_modules/@trendmicro/react-datepicker/node_modules/react-datepicker
npm WARN   react-datepicker@"~1.5.0" from @trendmicro/react-datepicker@1.0.0-alpha.7
npm WARN   node_modules/cncjs/node_modules/@trendmicro/react-datepicker
npm WARN ERESOLVE overriding peer dependency
npm WARN Found: react@15.6.2
npm WARN node_modules/cncjs/node_modules/react
npm WARN   react@"~15.6.2" from cncjs@1.9.22
npm WARN   node_modules/cncjs
npm WARN     cncjs@"1.9.22" from the root project
npm WARN   29 more (@trendmicro/react-anchor, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.14.0" from react-dom@16.14.0
npm WARN node_modules/cncjs/node_modules/@trendmicro/react-datepicker/node_modules/react-dom
npm WARN   peer react-dom@"^16.0.0" from react-datepicker@1.5.0
npm WARN   node_modules/cncjs/node_modules/@trendmicro/react-datepicker/node_modules/react-datepicker
npm WARN ERESOLVE overriding peer dependency
npm WARN Found: react@15.6.2
npm WARN node_modules/cncjs/node_modules/react
npm WARN   react@"~15.6.2" from cncjs@1.9.22
npm WARN   node_modules/cncjs
npm WARN     cncjs@"1.9.22" from the root project
npm WARN   29 more (@trendmicro/react-anchor, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.14.0" from react-dom@16.14.0
npm WARN node_modules/cncjs/node_modules/@trendmicro/react-datepicker/node_modules/react-dom
npm WARN   peer react-dom@"^16.0.0" from react-datepicker@1.5.0
npm WARN   node_modules/cncjs/node_modules/@trendmicro/react-datepicker/node_modules/react-datepicker
npm WARN deprecated bcrypt-nodejs@0.0.3: bcrypt-nodejs is no longer actively maintained. Please use bcrypt or bcryptjs. See https://github.com/kelektiv/node.bcrypt.js/wiki/bcrypt-vs-brypt.js to learn more about these two options
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated mkdirp@0.3.0: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated @babel/polyfill@7.4.4:  This package has been deprecated in favor of separate inclusion of a polyfill and regenerator-runtime (when needed). See the @babel/polyfill docs (https://babeljs.io/docs/en/babel-polyfill) for more information.
npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
npm WARN deprecated core-js@1.2.7: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated core-js@2.6.12: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.

版本

  • CNCjs:1.9.2
  • 节点.js:10.24.1
  • NPM:7.9

你如何安装CNCjs?

  • NPM
  • 下载 CNCjs 桌面应用程序

数控系统

  • Grbl

硬件

  • 树莓派

操作系统

  • [X] Linux (DietPi)
编译问题/依赖 #695
橙色世界 评论了 2021 年 8 月 14 日  

这里是同一件事,不同的版本但仍然存在依赖性问题。
我怀疑这与 cncjs 没有更新到新的依赖项有关。
我是 cncjs 的新手,所以我必须深入研究安装并确定这些要求。

祝你好运

编辑

经过几个小时的摆弄和测试,我实际上已经设法设置它并且只能通过使用安装脚本@AustinSaintAubin这里找到
找到 当安装程序在 10.24.1 和 NPM 在 6.14.12 时安装更高版本的 nodeJS (14.x) 和 npm (7.x)

HTH

编译问题/依赖 #695

我有同样的问题。

最后,来自源代码的编译(v1.9.22)与 docker 一起工作

在你的笔记本电脑上:(
docker build -t myfork/cncjs:1.9.22 .
需要很长时间,真的)

FROM balenalib/raspberrypi3-node:10

WORKDIR /app
COPY ./ ./

RUN [ "cross-build-start" ]
RUN apt update && apt install -y python3 g++ make
RUN npm install
RUN npm run prepare
RUN [ "cross-build-end" ]

EXPOSE 8000
CMD [ "bin/cncjs" ]

将 docker 镜像移动到树莓派
docker save myfork/cncjs | ssh pi@my-ip docker load

在你的覆盆子上
docker run --privileged -p 8000:8000 --detach --name cncjs myfork/cncjs:1.9.22

免费注册 在 GitHub 上加入此对话。已有帐户? 登录评论
项目
状态:分流
发展

没有分支机构或拉取请求

4人参加
编译问题/依赖 #695编译问题/依赖 #695编译问题/依赖 #695编译问题/依赖 #695

喜欢 (0)