File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -12,27 +12,29 @@ Based on [QmlWeb](https://github.com/qmlweb/qmlweb) and [Electron](https://githu
12
12
This is not a replacement to Qt QML by any means and should not be used in
13
13
production.
14
14
15
- The only purpose of this tool is to test QmlWeb and visually compare the rendered
16
- results with Qt QML output (e.g. ` qmlscene ` ).
15
+ The only purpose of this tool is to test QmlWeb and visually compare the
16
+ rendered results with Qt QML output (e.g. ` qmlscene ` ).
17
17
18
18
## Installation and usage
19
19
20
- #### Prerequisites
20
+ ### Prerequisites
21
21
22
22
You need Node.js with npm to install and run qmlweb-viewer.
23
23
24
24
See [ Installing Node.js via package manager] ( https://nodejs.org/en/download/package-manager/ )
25
25
or [ Node Version Manager] ( http://nvm.sh ) for more detailed instructions on that.
26
26
27
- #### Local install (to a subdirectory):
27
+ ### Local install (to a subdirectory)
28
+
28
29
``` sh
29
30
npm i qmlweb-viewer
30
31
./node_modules/.bin/qmlweb-viewer path-to-file.qml
31
32
```
32
33
33
- This way, ` qmlweb-viewer ` will be installed into the ` node_modules ` subdirectory.
34
+ This way, ` qmlweb-viewer ` will be installed into the ` node_modules `
35
+ subdirectory.
34
36
35
- #### Global install
37
+ ### Global install
36
38
37
39
See [ Fixing npm permissions] ( https://docs.npmjs.com/getting-started/fixing-npm-permissions )
38
40
to fix permissions issues, running ` npm ` as root is not recommended.
You can’t perform that action at this time.
0 commit comments