- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在 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。
表示您在第 120 行使用 4 个空格而不是 2 个空格
/home/mykampaign/public_html/testplan/mean/gulpfile.js
120:1 error Expected indentation of 2 spaces but found 4 indent
由于您不想修改 meanjs 代码,您可以更改 eslint 配置或禁用它。
关于centos - MEAN Stack 在 CentOS 6.10 上不起作用(多个错误),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51888857/
在编写代码时,当我编写 struct *Stack stack 时,代码无法工作,而当我像 struct Stack* stack 那样编写代码时,代码可以工作有人告诉我这两个代码之间的区别吗? 最佳
我的教授要我绘制堆栈吗?他想让我付诸行动吗?我觉得自己很愚蠢,但这不像任何人告诉我的那样!感谢您的帮助。 哇,你们真快。已经谢谢你了。完整的问题是:考虑两个堆栈,每个堆栈的大小为 n(即,每个堆栈最多
是new Stack[N]相当于new Stack[N]对于通用数据类型 Stack ? 编辑:虽然我知道最好避免混合泛型类型和数组,并且存在更强大的解决方案,但我的查询仍然存在:被广泛认可的教科书,
我正在尝试使用堆栈的 printf() 打印 stack.top() 的返回值,但它给出的格式不匹配。代码如下: int main(){ stack cards; char *ch1
我正在尝试做一个 dapp 项目。 我有一个堆栈太深的错误,但我不知道如何解决这个问题。 CompilerError: Stack too deep, try removing local varia
在哪里stack haddock (或 stack build --haddock )放置它生成的文档? 最佳答案 这取决于为“属于”生成黑线鳕的包的位置。 “本地”包的 Haddocks 是堆栈项目
按照目前的情况,这个问题不适合我们的问答形式。我们希望答案得到事实、引用或专业知识的支持,但这个问题可能会引发辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visit the
基本上,我有 2 个文件(.adb 和 .ads)。我对 Ada 以及如何编译 2 个文件完全陌生。该程序是一个基本的堆栈实现。编译 .adb 文件时出现此编译错误。 $ gcc -c test_ad
关闭。这个问题需要更多focused .它目前不接受答案。 想改善这个问题吗?更新问题,使其仅关注一个问题 editing this post . 5年前关闭。 Improve this questi
您好,我正在尝试在微服务架构中使用 ELK 堆栈,其中有许多服务分布在许多服务器上。 现在我已经配置了 Kibana 和 ElasticSearch。现在我的疑问是我必须在哪里安装 Logstash。
很难说出这里要问什么。这个问题模棱两可、含糊不清、不完整、过于宽泛或夸夸其谈,无法以目前的形式得到合理的回答。如需帮助澄清此问题以便重新打开,visit the help center . 关闭 9
我正在学习 Haskell,但遇到了我没想到的异常“堆栈溢出”。 代码相当简单: type Reals = Double prod :: Reals -> Reals -> Reals prod a
在我的 PC(最新的 JDK 和编译器版本)上,我的程序运行得非常顺利。但在我教授的计算机上,她说她遇到了两个错误 1) Stack myStack= new Stack() 类型的非法开始 2) 非
当我尝试在调用跟踪后执行 ./stack.sh 时,我收到以下错误: `[Call Trace] ./stack.sh:217:source /home/work/devstack/stackrc
1 上下文 我参与了一个涉及大量 C 位和 FFI 的 Haskell 项目。所以我发现自己经常运行和重新运行命令,比如 $ stack build $ stack build --force-dir
关于 SO 上的堆栈的问题,终于!我的一生都让我走到了这一步。 所以我需要将我制作的一些相当大的自定义数据结构合并到一个堆栈中。我决定编写一个仅包含一个整数值的最小堆栈结构。这里是 - MODULE
我只是想知道为什么在括号之间嵌入表达式时会得到两个不同的成员列表,例如gl-stack。看起来,如果没有括号,表达式就会被完全求值,并且结果会立即传递到下一个管道组件。但通过括号,集合中的单个对象将被
是否可以保存Stack>在onSaveInstanceState . 是否可以通过另一种方式保存某些特定数据来管理 Activity 状态? 最佳答案 您无法将 View 保存到 bundle 中。无
这个问题已经有答案了: Why don't Java Generics support primitive types? (5 个回答) 已关闭 9 年前。 为什么我不能使用Stack ? 除了拳击之
基于数组的实现级别 #include "stack.h" void creat_stack(Stack *s) { s->Top = 0; } int isFull(Stack s) {
我是一名优秀的程序员,十分优秀!