我下载了ros-control-center(https://github.com/pantor/ros-control-center),我正在尝试为自己开发它。 我已经安装了npm,但是当我运行gulp时,我得到以下错误:
[09:12:35] Using gulpfile ~/proj/ros-control-centers/gulpfile.js
[09:12:35] Starting 'js-lint'...
[09:12:35] Starting 'watch'...
[09:12:35] Finished 'watch' after 12 ms
[09:12:35]
/home/monero/proj/ros-control-centers/app/control/control.controller.js
1:5 error Parsing error: Unexpected token ros
/home/monero/proj/ros-control-centers/app/helper/domains.service.js
1:1 error Parsing error: The keyword 'class' is reserved
/home/monero/proj/ros-control-centers/app/helper/quaternions.service.js
1:1 error Parsing error: The keyword 'class' is reserved
/home/monero/proj/ros-control-centers/app/parameters/parameters.directive.js
6:15 error Parsing error: Unexpected token (
/home/monero/proj/ros-control-centers/app/navbar/navbar.directive.js
5:15 error Parsing error: Unexpected token (
/home/monero/proj/ros-control-centers/app/settings/settings.controller.js
1:1 error Parsing error: The keyword 'class' is reserved
/home/monero/proj/ros-control-centers/app/settings/settings.factory.js
1:1 error Parsing error: The keyword 'class' is reserved
/home/monero/proj/ros-control-centers/app/services/service.directive.js
6:15 error Parsing error: Unexpected token (
/home/monero/proj/ros-control-centers/app/topics/topic.directive.js
6:15 error Parsing error: Unexpected token (
✖ 9 problems (9 errors, 0 warnings)
[09:12:35] 'js-lint' errored after 119 ms
[09:12:35] ESLintError in plugin 'gulp-eslint'
Message:
Failed with 9 errors
这似乎是一个非常基本的问题,但我无法在线找到解决此问题的任何解决方案。如果有人需要进一步的信息,请告诉我,并提前感谢!
答案 0 :(得分:0)
感谢您的回答! 如果我运行npm install,据我所知,所有必需的软件包都已安装......我用npm ls检查了软件包 我得到3个警告:
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
gulp是全局安装的,我只安装了npm。我忘记了有什么明显的东西吗?我在开发方面很陌生。