gpt4 book ai didi

centos - MEAN Stack 在 CentOS 6.10 上不起作用(多个错误)

转载 作者:行者123 更新时间:2023-12-04 19:42:22 33 4
gpt4 key购买 nike

在 CentOS 6.10 x86_64 中,我安装了 MEAN 堆栈 (github/meanjs/mean) 并且在运行命令 npm start 时遇到了这个不寻常的错误。
服务器将从 47 错误开始,最后它将以 0.0.0.0:3000 结束。我已经更改为工作域,但仍然没有用。
即使我使用了--fix没用,还有--fix force也没有效果。
如果我添加一个像 www.example.com 这样的域或 IP 地址 123.45.678.10 ,它最终会出现很多新错误。

下面是控制台的输出

npm start

> meanjs@0.6.0 start /home/mykampaign/public_html/testplan/mean
> gulp

[05:00:11] Using gulpfile /home/mykampaign/public_html/testplan/mean/gulpfile.js
[05:00:11] Starting 'default'...
[05:00:11] Starting 'env:dev'...
[05:00:11] Finished 'env:dev' after 497 μs
[05:00:11] Starting 'copyLocalEnvConfig'...
[05:00:11] Starting 'makeUploadsDir'...
[05:00:11] Finished 'makeUploadsDir' after 423 μs
[05:00:11] Finished 'copyLocalEnvConfig' after 72 ms
[05:00:11] Starting 'lint'...
[05:00:11] Starting 'less'...
[05:00:12] Finished 'less' after 1.04 s
[05:00:12] Starting 'sass'...
[05:00:12] Finished 'sass' after 304 ms
[05:00:12] Starting 'csslint'...
[05:00:13] Starting 'eslint'...
(node:28244) DeprecationWarning: [eslint] The 'ecmaFeatures' config file property is deprecated, and has no effect. (found in airbnb/legacy)
[05:00:14] Finished 'csslint' after 1.92 s
[05:00:20]
/home/mykampaign/public_html/testplan/mean/gulpfile.js
120:1 error Expected indentation of 2 spaces but found 4 indent
121:1 error Expected indentation of 2 spaces but found 4 indent

/home/mykampaign/public_html/testplan/mean/modules/users/server/config/strategies/google.js
21:1 error Expected indentation of 2 spaces but found 4 indent
22:1 error Expected indentation of 4 spaces but found 6 indent
23:1 error Expected indentation of 4 spaces but found 6 indent
24:1 error Expected indentation of 4 spaces but found 6 indent
25:1 error Expected indentation of 4 spaces but found 6 indent
27:1 error Expected indentation of 4 spaces but found 6 indent
28:1 error Expected indentation of 4 spaces but found 6 indent
29:1 error Expected indentation of 6 spaces but found 8 indent
30:1 error Expected indentation of 6 spaces but found 8 indent
31:1 error Expected indentation of 6 spaces but found 8 indent
32:1 error Expected indentation of 6 spaces but found 8 indent
33:1 error Expected indentation of 6 spaces but found 8 indent
34:1 error Expected indentation of 6 spaces but found 8 indent
35:1 error Expected indentation of 6 spaces but found 8 indent
36:1 error Expected indentation of 6 spaces but found 8 indent
37:1 error Expected indentation of 6 spaces but found 8 indent
38:1 error Expected indentation of 4 spaces but found 6 indent
41:1 error Expected indentation of 4 spaces but found 6 indent
42:1 error Expected indentation of 2 spaces but found 4 indent

/home/mykampaign/public_html/testplan/mean/modules/core/client/services/interceptors/auth-interceptor.client.service.js
34:21 error Multiple spaces found before '// Handle erro...' no-multi-spaces

/home/mykampaign/public_html/testplan/mean/modules/users/tests/server/user.server.model.tests.js
263:1 error Expected indentation of 8 spaces but found 6 indent
264:1 error Expected indentation of 10 spaces but found 8 indent
265:1 error Expected indentation of 10 spaces but found 8 indent
266:1 error Expected indentation of 12 spaces but found 10 indent
267:1 error Expected indentation of 10 spaces but found 8 indent
268:1 error Expected indentation of 8 spaces but found 6 indent
269:1 error Expected indentation of 8 spaces but found 6 indent
270:1 error Expected indentation of 10 spaces but found 8 indent
271:1 error Expected indentation of 8 spaces but found 6 indent

/home/mykampaign/public_html/testplan/mean/modules/users/tests/server/user.server.routes.tests.js
487:1 error Expected indentation of 14 spaces but found 12 indent
488:1 error Expected indentation of 14 spaces but found 12 indent
490:1 error Expected indentation of 16 spaces but found 14 indent
491:1 error Expected indentation of 18 spaces but found 16 indent
492:1 error Expected indentation of 16 spaces but found 14 indent
494:1 error Expected indentation of 16 spaces but found 14 indent
496:1 error Expected indentation of 16 spaces but found 14 indent
497:1 error Expected indentation of 14 spaces but found 12 indent
521:1 error Expected indentation of 12 spaces but found 10 indent
522:1 error Expected indentation of 12 spaces but found 10 indent
524:1 error Expected indentation of 14 spaces but found 12 indent
525:1 error Expected indentation of 16 spaces but found 14 indent
526:1 error Expected indentation of 14 spaces but found 12 indent
528:1 error Expected indentation of 14 spaces but found 12 indent
530:1 error Expected indentation of 14 spaces but found 12 indent
531:1 error Expected indentation of 12 spaces but found 10 indent

✖ 47 problems (47 errors, 0 warnings)
47 errors, 0 warnings potentially fixable with the `--fix` option.

[05:00:20] Finished 'eslint' after 7.42 s
[05:00:20] Finished 'lint' after 8.86 s
[05:00:20] Starting 'nodemon'...
[05:00:20] Finished 'nodemon' after 129 ms
[05:00:20] Starting 'watch'...
[05:00:20] Finished 'watch' after 270 ms
[05:00:20] Finished 'default' after 9.34 s
[05:00:20] [nodemon] 1.11.0
[05:00:20] [nodemon] to restart at any time, enter `rs`
[05:00:20] [nodemon] ignoring: /home/mykampaign/public_html/testplan/mean/.git/**/* .nyc_output .sass-cache bower_components coverage /home/mykampaign/public_html/testplan/mean/node_modules/**/*
[05:00:20] [nodemon] watching: modules/*/server/views/*.html server.js config/**/*.js modules/*/server/**/*.js modules/*/server/config/*.js
[05:00:20] [nodemon] watching extensions: js,html
[05:00:20] [nodemon] starting `node --inspect server.js`
[05:00:20] [nodemon] child pid: 28258
Debugger listening on ws://127.0.0.1:9229/f25bcd4b-d765-42db-9b0a-9e506a9c1045
For help see https://nodejs.org/en/docs/inspector
[05:00:21] [nodemon] watching 175 files


+ Important warning: config.domain is empty. It should be set to the fully qualified domain of the app.
--
MEAN.JS - Development Environment

Environment: development
Server: http://0.0.0.0:3000
Database: mongodb://localhost/mean-dev
App version: 0.6.0
MEAN.JS version: 0.6.0

最佳答案

这 47 个错误是由 eslint 生成的,它检查缩进规则的一致性。

IE。
/home/mykampaign/public_html/testplan/mean/gulpfile.js
120:1 error Expected indentation of 2 spaces but found 4 indent
表示您在第 120 行使用 4 个空格而不是 2 个空格

由于您不想修改 meanjs 代码,您可以更改 eslint 配置或禁用它。

关于centos - MEAN Stack 在 CentOS 6.10 上不起作用(多个错误),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51888857/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com