Closed terrygreen0606 closed 1 year ago
Encountered the same problem. Went into my VM that had a functional version of my software & checked the node_modules directory, I noticed something different.
Changes in parse-function module broke orientjs
Working version: parse-function@5.4.4
Failed version: parse-function@5.5.0
Install parse-function@5.4.4
I tested at my end, works fine now.
Thank you very much for your help, jymcheong. It's working.
Do I have to install arrify, too? I installed that first and then installed parse-function@5.4.4.
Do I have to install arrify, too? I installed that first and then installed parse-function@5.4.4.
Parse-function@5.4.4 likely does not depend on arrify. It is the newer 5.5.0 that needs it. But the way it is used in orientJS seems to be broken even after installing arrify. So I just roll back to older parse-function since I not sure what to change at orientJS to fix the issue.
I can confirm this issue aswell, @jymcheong 's fix of installing 5.4.4 seems to be working . But would be nice to be fixed resolved from maintainers :)
Do I have to install arrify, too? I installed that first and then installed parse-function@5.4.4.
Parse-function@5.4.4 likely does not depend on arrify. It is the newer 5.5.0 that needs it. But the way it is used in orientJS seems to be broken even after installing arrify. So I just roll back to older parse-function since I not sure what to change at orientJS to fix the issue.
That's right. I removed arrify and installed just parse-function@5.4.4. And it works without any problems. I don't know why it doesn't go on with the new version of parse-function.
I found another way to use the new version of parse-function with orientjs. Navigate to node_modules/orientjs/lib/db/db.js and then find require('parse-function')(). Here, I removed the last brackets so that it looks like require('parse-function'). This also works. I don't know the reason, but anyhow it works without any problems with the version of 5.4.4.
Hi Folks
i've merged this PR https://github.com/orientechnologies/orientjs/pull/416
which fixed this. I will publish a new version most likely today
Thanks
Hi,
Fixed a while ago, closing
I installed orientjs with npm on windows and ubuntu.
When I execute the file that requires orientjs, it gives node-gyp rebuild error on windows and can not find module 'arrify' on ubuntu.
On Windows I tried hundreds of times with binding.gyp and binding.cc files.
On Ubuntu When I install 'arrify', it gives another error of 'parse-function'.
Could you help me fix these?
These are the error image of ubuntu and windows.