Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mac上无法跑成功,node版本为8.11.0,同版本node可以在windows上跑通 #36

Open
dragooncjw opened this issue Dec 29, 2018 · 11 comments

Comments

@dragooncjw
Copy link

No description provided.

@dragooncjw dragooncjw changed the title mac mac上无法跑成功,node版本为8.11.0,同版本node可以在windows上跑通 Dec 29, 2018
@dragooncjw
Copy link
Author

ERROR in ./src/app.js
Module build failed: Error: Failed to load plugin html: Cannot find module 'eslint-plugin-html'

@javaLuo
Copy link
Owner

javaLuo commented Dec 31, 2018

ok 我看看

@javaLuo
Copy link
Owner

javaLuo commented Jan 2, 2019

hi, 我在mac上试了一下,没发现这样的问题
你的报错信息提示没有找到eslint-plugin-html这个包
但项目并没有用到这个包。
你可以把node_modules、yarn.lock或package-lock.json删除,重新install试试

@dragooncjw
Copy link
Author

你好,我尝试了很多次都不行。。。请问你的node版本是不是8.11.0?

@javaLuo
Copy link
Owner

javaLuo commented Jan 2, 2019

我是10.8, 我等下安装一个8.11试一下

@javaLuo
Copy link
Owner

javaLuo commented Jan 2, 2019

我试了一下,好像也没问题啊
我注意到你的报错是 ./src/app.js
原项目里没有这个文件,这个文件是你后来自己创建的吗

@dragooncjw
Copy link
Author

欸,好像是的,我回去再看一下。

@dragooncjw
Copy link
Author

确实多出来了一个app.js。。但是我重新跑还是不行,而且还有一点,我必须yarn后再npm install,不然还是会少webpack的库。。。

@dragooncjw
Copy link
Author

这回的错误是ERROR in ./src/index.js Module build failed (from ./node_modules/_eslint-loader@2.1.1@eslint-loader/index.js): Error: Failed to load plugin html: Cannot find module 'eslint-plugin-html'
,我单纯只用cnpm install的时候显示deprecate eslint@5.11.1 › file-entry-cache@2.0.0 › flat-cache@1.3.4 › circular-json@^0.3.1 CircularJSON is in maintenance only, flatted is its successor.,run dll的时候也一切正常,但是还是这个依赖包的错误。。。

@javaLuo
Copy link
Owner

javaLuo commented Jan 2, 2019

eslint@5.11.1 › file-entry-cache@2.0.0 › flat-cache@1.3.4 › circular-json@^0.3.1 CircularJSON is in maintenance only
这个是eslint的一个依赖警告,官方应该会在下个版本解决:eslint/eslint#11052

Cannot find module 'eslint-plugin-html' 这个问题我没试出来。网上搜了一圈,还是没找到是什么问题,我会继续跟进的

@dragooncjw
Copy link
Author

好的,还是谢谢大佬百忙之中抽空回答我的问题!!!
我会在windows端认真学习你的框架的!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants