evervault / node-secureworker

Run JavaScript inside an Intel SGX Enclave as easily as using a Web Worker
https://www.npmjs.com/package/secureworker
BSD 3-Clause "New" or "Revised" License
102 stars 16 forks source link

problems installing: No rule to make target 'node_modules/promise-polyfill/promise.js' #12

Closed ddreyer closed 5 years ago

ddreyer commented 6 years ago

Running npm install and I get the following error: make: *** No rule to make target 'node_modules/promise-polyfill/promise.js', needed by 'enclave-autoexec/autoexec.js'. Stop. Any suggestions on how to fix this?

wh0 commented 6 years ago

Do you maybe have a later version of promise-polyfill where the file names have changed?

ddreyer commented 6 years ago

not sure, but promise.js definitely exists

Isan-Rivkin commented 6 years ago

Same issue, I did a quick-fix by adding a full path to the promise.js file in the Makefile inside node_modules/secureworker enclave-autoexec/autoexec.js: enclave-autoexec/index.js /home/wildermind/Desktop/delete/node_modules/promise-polyfill/promise.js ./node_modules/.bin/browserify --insert-global-vars __filename,__dirname --no-commondir $< > $@ Then, I got a following error saying I don't have browserify so I just did npm install --save browserify and it worked.

EDIT: After looking into it more, the problem is that the Makefile looks inside the node_modules directory of /node_modules/secureworker/node_modules instead of the root node_modules. Basically there are 2 folders, 1 is missing the required module.