Skip to content

Yarn #299

Answered by coreybutler
ghost asked this question in Q&A
Yarn #299
Dec 7, 2021 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

This library wasn't written with yarn in mind, but I know there are users who successfully use it with yarn. I can't think of anything npm-specific in the code base.

This issue may be due to the use of __dirname though... if you're actually using that variable to define a path. When the application runs, __dirname refers to the root of the current application. If I correctly understand your setup, this would be the node-windows directory, not a code directory. I recommend hard-coding paths to test whether your deploy script is properly generating the appropriate paths.

In case it's helpful, the wiki has several answers/comments about using __dirname.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
2 replies
@coreybutler
Comment options

@ghost
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant