-
-
Notifications
You must be signed in to change notification settings - Fork 774
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 package broken on Windows #34
Comments
That's not js-yaml issue. |
Any ideas where to look? I guess probably npm? I'd like to get to the bottom of this so users can use your module on Windows. In any case, I'll dig into it if you are not willing. |
No ideas. We have no practical needs to investigate situation with windows platform & browsers. If you like to spend time for it - pull requests will be accepted. |
The problem is that the files were ignored by the listing in .npmignore, see here https://github.com/isaacs/npm/issues/1967. I have verified that removing those lines:
does fix the problem on Windows. I don't know the reason for ignoring those files in the first place, but the problem is that, by virtue of those lines being there, lib/js-yaml.js gets skipped - which I am not sure if is a bug or if so whose bug it is. Anyway, does that (removing the two lines)seem like the right fix? Or do you have an idea of a better fix? Thanks! |
Those are browserified versions for BROWSER. They can't make problem in npm package. Something is wrong in your code.
|
Okay you got it. Results on Mac
Worked great. Now on Windows
So, on Windows it can't find the file
If I remove the line Oh! And happy new year! |
Yes, seems PS. Personally, on windows i advice you to install virtualbox, and run ubuntu linux in it. That will solve another problem, that most C modules will not work on win now. |
Okay. Isaac agreed it was a bug in npm, but which will not be fixed immediately(https://github.com/isaacs/npm/issues/1967#issuecomment-3325316). He suggested a workaround which I have implemented(#35) and tested on Windows and regression tested on OSX. Cheers! Regarding your comment about VirtualBox. I am working on this not because of personal use(I use Mac), but that I want my tool - which will depend on your package - to be usable across platforms. |
…karound to a bug in npm. See nodeca/js-yaml#34 and https://github.com/isaacs/npm/issues/1967.
On Windows, for some reason after installing the module, some required files aren't present, in particular js-yaml.js and lib/js-yaml.js, which cause the library to not work at all.
The text was updated successfully, but these errors were encountered: