node.js - 如何离线安装 Material Design Lite Documentation?

标签 node.js docker material-design-lite

我在本地安装 Material Design Lite 文档时遇到了一些问题。我在 this file 中执行命令:

git clone https://github.com/google/material-design-lite
cd material-design-lite
npm install && npm install -g gulp
gulp all && gulp serve

运行gulp all时出现错误:

root@c54a089ac69c:/home/material-design-lite# gulp all
[21:18:38] Requiring external module babel-register
[21:18:42] Using gulpfile /home/material-design-lite/gulpfile.babel.js
[21:18:42] Starting 'clean'...
[21:18:42] Finished 'clean' after 106 ms
[21:18:42] Starting 'all'...
[21:18:42] Starting 'lint:aux'...
[21:18:45] 
/home/material-design-lite/gulpfile.babel.js
  136:1  warning  Unexpected 'todo' comment  no-warning-comments
  807:3  warning  Unexpected 'todo' comment  no-warning-comments

✖ 2 problems (0 errors, 2 warnings)

[21:18:45] Finished 'lint:aux' after 2.39 s
[21:18:45] Starting 'styletemplates'...
[21:18:49] styles all files 1.07 MB
[21:18:49] Finished 'styletemplates' after 4.04 s
[21:18:49] Starting 'styles-grid'...
[21:18:49] Starting 'styles'...
[21:18:49] styles-grid all files 17.77 kB
[21:18:49] Finished 'styles-grid' after 187 ms
[21:18:50] styles all files 714.08 kB
[21:18:50] Finished 'styles' after 1.39 s
[21:18:50] Starting 'styles:gen'...
[21:18:52] Finished 'styles:gen' after 2.36 s
[21:18:52] Starting 'lint:sources'...
[21:18:56] 
/home/material-design-lite/src/mdlComponentHandler.js
  232:49  error  Properties shouldn't be quoted as all quotes are redundant  quote-props
  366:51  error  Properties shouldn't be quoted as all quotes are redundant  quote-props

/home/material-design-lite/src/checkbox/checkbox.js
  123:5  warning  Unexpected 'todo' comment  no-warning-comments

/home/material-design-lite/src/icon-toggle/icon-toggle.js
  119:5  warning  Unexpected 'todo' comment  no-warning-comments

/home/material-design-lite/src/radio/radio.js
  133:5  warning  Unexpected 'todo' comment  no-warning-comments

/home/material-design-lite/src/switch/switch.js
  122:5  warning  Unexpected 'todo' comment  no-warning-comments

/home/material-design-lite/src/tabs/tabs.js
  88:7  warning  Do not use 'new' for side effects  no-new

/home/material-design-lite/src/textfield/textfield.js
  273:11  warning  Unexpected 'todo' comment  no-warning-comments

/home/material-design-lite/src/layout/layout.js
  520:11  warning  Do not use 'new' for side effects        no-new
  570:3   error    Block must not be padded by blank lines  padded-blocks

✖ 10 problems (3 errors, 7 warnings)

[21:18:56] 'lint:sources' errored after 3.59 s
[21:18:56] ESLintError in plugin 'gulp-eslint'
Message:
    Failed with 3 errors
[21:18:56] 'all' errored after 14 s
[21:18:56] Error in plugin 'run-sequence'
Message:
    An error occured in task 'lint:sources'.

但是,当我使用 gulp serve 为它提供服务时,它会运行但只显示:

Screenshot

只是显示文件!如何为 material-design-lite 生成离线文档?有任何想法吗?谢谢。

谢谢;

附言:

我用 NodeJS Container. 在 Docker 上运行它

Material Design Lite 网站:https://getmdl.io

最佳答案

我从未尝试克隆存储库,但通过这种方式我可以获得离线文档。仅使用 wget 工具。 wget -mkEpnp https://getmdl.io 瞧,您的桌面上有网站的副本。

关于node.js - 如何离线安装 Material Design Lite Documentation?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36657075/

相关文章:

node.js - 仅在一台服务器上测试不和谐机器人discordjs

javascript - 在 Node.js 上的 JS 中,将数据、数组/文件/其他地方的 "a lot"放在哪里

node.js - Node crypto.createCipheriv ('aes-256-gcm' , ...).getAuthKey() 的值可以公开吗?

javascript - 使用 React.js 呈现 MDL 文本字段时出现问题

html - 使用 MDL 创建水平框导航

html - 水平居中 mdl-button

mysql - 无法 POST/api/dogs

python - 使用 Azure CLI 获取客户端 IP - Dockerized nginx+Flask+Gunicorn

node.js - Docker + WebGL + Headless Chrome 错误 : Passthrough is not supported, GL 被禁用

linux - Docker: "not found"表示现有文件