Open amosyuen opened 6 years ago
Same issue!
Same issue except the fix didn't work for me :(
Same, I tried copying over the build output and everything inside of release to the node_modules/node-scrypt directory, no success.
I can run node server.js fine on my local OSX machine, fails on an Ubuntu server.
Same problem here. Any fixes ?
I'm having the same issue. Have any of you been able to resolve this?
I'm not sure what happened, but for me the solution was to reboot
same issue!
Make sure you're doing "npm install" within Dockerfile, and make sure .dockerignore contains **/node_modules
This is commonly a result of having a local node_modules directory get copied into the docker build, which will then cause npm to think that package has already been built within the image. As a result, the scrypt package that was built for your OS winds up inside the image and the container OS understandably can't run it.
Tried the above.
Still not working!
Actually got it working guys.
For whoever comes across this in the future, the issue DOES comes down to how you handle the node_module folder generation. However, It may not be enough for you to simply .dockerignore it, for me I had to set up docker to explicitly regenerate the node_module folder. This came down to doing 3 things:
FROM node:8
WORKDIR /usr/src/code
COPY package.json /usr/src/code
RUN yarn install ......
dump.rdb *.log **/node_modules .....
version: '3' services: web: build: . ports:
When i did all three of these, the project finally compiled correctly. Hope this helps!
I've installed
node-gyp
andnode-scrypt
in a ubuntu docker container running on Windows. Install worked fine, I'm doing the install in the docker container so it's not happening on Windows. Requiringnode-scrypt
gives me this error:If I follow the instructions to natively compile node-scrypt and copy that into my node_modules that works fine.