barrysteyn / node-scrypt

Scrypt for Node
369 stars 88 forks source link

After deleting the 'node_modules' folder, a folder named 'copied_files.tlog' is recreated over and over again #182

Open barakman opened 5 years ago

barakman commented 5 years ago

After deleting the node_modules folder, a folder named node_modules/scrypt/build/Release/obj/copied_files/copied_files.tlog is recreated, and then recreated over and over again when deleted.

This folder contains files with the name prefix link-VCTIP.

It feels like scrypt has possibly spawned a sub-process which remains alive.

Is there a way to prevent this unnecessary behavior?

chrisveness commented 5 years ago

I think Barry may have abandoned this project. If you are using Node.js v10.5.0+, you could try my scrypt-kdf, which is a simple pure-JS wrapper around the native OpenSSL implementation of scrypt. If you try it, I would be interested to know whether you have any issues.

barakman commented 5 years ago

@chrisveness: Thank you for reaching out.

I am not importing this module directly in package.json, so it probably comes along with one of the other modules required in that file:

    "websocket": "^1.0.0",
    "bignumber.js": "^7.0.0",
    "decimal.js": "^10.0.0",
    "truffle": "4.1.14",
    "ganache-cli": "6.1.8",
    "solidity-coverage": "0.5.8",
    "ethereumjs-testrpc-sc": "6.1.6",
    "openzeppelin-solidity": "1.12.0",
    "web3": "1.0.0-beta.34"
chrisveness commented 5 years ago

The dependency appears to be coming from scrypt.js (which no longer has a github repository), which is a dependency of ethereumjs-wallet, in turn a dependency of ganache-core, in turn a dependency of ganache-cli.

barakman commented 5 years ago

@chrisveness: OK, so I should probably report this in each one of the repositories above. Is there an official substitute for scrypt.js, which can be used instead (something with an "active owner")? Thanks.

chrisveness commented 5 years ago

I don't know about any substitute for scrypt.js, but the collaborator listed on npm is @axic, who is also a collaborator on ethereumjs-wallet, so it might be worth reaching out to him.

chrisveness commented 5 years ago

@axic – for Node.js prior to 10.5.0, and for browser, scrypt-async looks a good alternative to the OpenSSL implementation of scrypt.

Edit: scrypt-async can be used as a polyfill for the OpenSSL scrypt to enable scrypt-kdf to be used with Node.js prior to 10.5.0.