node-scrypt icon indicating copy to clipboard operation
node-scrypt copied to clipboard

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

Open barakman opened this issue 6 years ago • 6 comments

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?

barakman avatar Oct 04 '18 08:10 barakman

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.

chrisveness avatar Oct 11 '18 13:10 chrisveness

@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"

barakman avatar Oct 11 '18 15:10 barakman

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.

chrisveness avatar Oct 15 '18 14:10 chrisveness

@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.

barakman avatar Oct 15 '18 14:10 barakman

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 avatar Oct 15 '18 15:10 chrisveness

@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.

chrisveness avatar Oct 15 '18 15:10 chrisveness