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

npm run init 总是提示 weui-miniprogram-master\node_modules\less: Appears to be a git repo or submo #12

Closed
lisl4github opened this issue Aug 17, 2019 · 2 comments

Comments

@lisl4github
Copy link

【日志如下】:
npm ERR! path F:\dev\wx-xcx\study\weui-miniprogram-master\node_modules\less
npm ERR! code EISGIT
npm ERR! git F:\dev\wx-xcx\study\weui-miniprogram-master\node_modules\less: Appears to be a git repo or submo
dule.
npm ERR! git F:\dev\wx-xcx\study\weui-miniprogram-master\node_modules\less
npm ERR! git Refusing to remove it. Update manually,
npm ERR! git or move it out of the way first.

npm ERR! A complete log of this run can be found in:
npm ERR! E:\dev\NodeJs\node-v8.4.0-win-x86\node-cache_logs\2019-08-17T17_53_25_690Z-debug.log

@cunjinli6
Copy link
Collaborator

emmm,是npm install less失败了?

@cunjinli6
Copy link
Collaborator

通过下载zip的方式,因为下载下来的不是git仓库,所以不能初始化submodule。
可以通过git clone方式把代码clone下来初始化
如果只是使用,可以通过npm下载或者通过下载页面

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