Open bantingGamer opened 5 years ago
Same problem here. wml add, rm, list etc all work fine. wml start just results in a blinking cursor on the next line. No output. No changes.
Windows 10
Same here
Windows 10
add your wml/src dir to watchman list will do, like this
watchman watch /Users/rcrabwu/.nvm/versions/node/v8.9.0/lib/node_modules/wml/src
I am also having this issue on a brand new install of Windows 10. "wml start" just resolves to a blinking cursor. It doesn't actually notice changes or do anything at all except leave a blinking cursor sitting there.
add your wml/src dir to watchman list will do, like this
watchman watch /Users/rcrabwu/.nvm/versions/node/v8.9.0/lib/node_modules/wml/src
This did not solve anything for me.
how to use it on windows?
same issues on windows10
@wushq5 thanks for your help
it's sucks. which path do I need to watch by the watchman. it doesn't work.
Under scoop
+ nvm
running watchman watch C:\Users\%user\scoop\apps\nvm\current\nodejs\nodejs\node_modules\wml\src
seems to work.
For people who late that have this issue: Steps by step how to run WML
wml
: $ npm install -g wml
$ brew update && brew install watchman
$ watchman watch-del-all
watchman
for wml
: $ watchman watch "C:\Program Files\nodejs\node_modules\wml\src"
$ npm list -g --depth 0 | head -1
> You will see something like this C:\Program Files\nodejs
$ which node
$ wml add <package to sync location> <dest package location>
$ wml start
I have tried not to install wml globally, and result was bad.
Chao ban va xin cam on, this should be in the README, the most important part is the step active watchman
, as soon as you map this correctly, you will see output when running wml start
.
However, it's not because I see wml logging that I see file updating, it still seems that wml is not doing anything but logging.
Any clue how I can solve the linking problem betweenn a module and a native application?
In my case, I followed @daominhsangvn 's instructions (MacOS) but since I'm using n
I couldn't get the location of node_modules/wml/src
by using which node
. I found a more accurate way by using:
npm root -g
Reference: https://stackoverflow.com/a/54996486
In my case, I followed @daominhsangvn 's instructions (MacOS) but since I'm using
n
I couldn't get the location ofnode_modules/wml/src
by usingwhich node
. I found a more accurate way by using:npm root -g
Reference: https://stackoverflow.com/a/54996486
Thanks for this!
@daominhsangvn Thank you! It works!
For those of you having trouble finding the path on macOS or Linux, this should help:
watchman watch $(dirname /$(readlink $(which wml)))/../wml/src
The issue
wml start does nothing. It is as if it doesn't load watchman. There is just a blank cursor flashing. No changes are copied.
To replicate
Install latest watchman "version": "4.9.4" from https://facebook.github.io/watchman/docs/install.html install wml npm install -g wml Configure wml wml add ~/my-package ~/main-project/node_modules/my-package run wml wml start and nothing
Thank you for your time