Closed Zubnix closed 5 years ago
Normally dev dependency exectuables are automatically picked up by npm. You should see the executable in app-endpoint-server/node-modules/.bin
. If you do and they're not picked up by npm itself, I assume there is an issue with your node.js installation(?).
The quickfix for now is use something like nvm which works without issues here. I believe it even supports global npm install (npm -g) without sudo. I'll see if I can reproduce your problem.
Ideally the long term solution is to completely drop node.js for something that outputs a single static binary (Rust, Go, ...).
not present for westfield-endpoint-generator in app-endpoint-server/node-modules/.bin
npm is telling the truth...
Strange stuff. https://docs.npmjs.com/files/folders#executables
I managed to reproduce it briefly as I had the westfield-endpoint-generator globally installed. After uninstalling it, I had the same error. However by removing the node_modules directory and running npm install
again, it all worked. :disappointed:
will try that
Okay that got me over the hump. Not it's complaining about cmake version. Let me see if I can pull from Debian unstable.
The cmake version is pretty arbitrary, we can probably lower it and it will probably still work.
Having problems with cmake. Can't upgrade without making system unstable. Why do we need CMake > 3.10?
I'm on stretch and really need to stay there because the kernel is specialized provided by VPS host. Upgrading cmake fources an upgrade of libc6 which forces everything else to upgrade. Highly unstable option. Both buster and sid have this problem so I'm kinda stuck...
Try downgrading the cmake version as specified in the build file, we can probably do with a lower version. you can use npm link
to point to your local (working) version. Btw what's the highest version you have?
specified in build file?
My cmake is 3.7.2 your build wants 3.10
Don't see where to change the version requirement...
Maybe I'll see if I can release a new Westfield version in the next few days. Some things in Westfield need fixing and changed to make copy-paste work anyway.
Gotcha. I'll try downgrading the CMake...
How do I reference my changed westfield from greenfield?
@frink you can use npm link <path-to-westfield-native>
inside the application-endpoint-server directory. However it's a transitive dependency so I'm not quite sure how well it'll work.
transitive?
@frink I've pushed an update to master, the cmake requirement has now been lowered
will try it :-D
@frink did you manage to get it working?
It's a fresh install of Debian 9. Having problems on install now...
Looks like westfield isn't found or something:
Originally posted by @frink in https://github.com/udevbe/greenfield/issues/8#issuecomment-496034336