# Error: Cannot find module 'scrypt-shim'

**URL:** <https://forum.openzeppelin.com/t/error-cannot-find-module-scrypt-shim/3316>\
**Category:** SDK\
**Created:** [June 26, 2020, 6:05pm UTC](https://forum.openzeppelin.com/t/error-cannot-find-module-scrypt-shim/3316 "2020-06-26T18:05:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucianosilvi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/lucianosilvi/32/2601_2.png) [@lucianosilvi](https://forum.openzeppelin.com/u/lucianosilvi)\
**Post date:** [June 26, 2020, 6:05pm UTC](https://forum.openzeppelin.com/t/error-cannot-find-module-scrypt-shim/3316/1 "2020-06-26T18:05:24Z")

</div>

Hi,  
I’m having a similar issue so I’m replying on this topic ([Got Cannot find module `./build/Release/scrypt` when run `npm run test`](https://forum.openzeppelin.com/t/got-cannot-find-module-build-release-scrypt-when-run-npm-run-test/996)) instead of opening a new one.  
I was updating dependencies from an older version of zos-lib to the new openzeppelin packages.  
I cleaned everything, including the deletion of node\_modules and package-lock.  
Then I installed the new packages, but I’m having this error:

```
internal/modules/cjs/loader.js:670
throw err;
^

Error: Cannot find module 'scrypt-shim'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:668:15)
    at Function.Module._load (internal/modules/cjs/loader.js:591:27)
    at Module.require (internal/modules/cjs/loader.js:723:19)
    at require (internal/modules/cjs/helpers.js:14:16)
    at Object.<anonymous> (/home/lucianosilvi/blockchain_dev/truffle_project/node_modules/web3-eth-accounts/src/index.js:34:14)
    at Module._compile (internal/modules/cjs/loader.js:816:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
    at Module.load (internal/modules/cjs/loader.js:685:32)
    at Function.Module._load (internal/modules/cjs/loader.js:620:12)
    at Module.require (internal/modules/cjs/loader.js:723:19)

```

I even tried installing the deprecated scrypt-shim package, but the issue persists.

**Packages versions:**  
NPM: 6.7  
Node: 11.15  
solc 0.6.10  
web3 1.2.9  
truffle 5.1.32  
@openzeppelin/cli 2.8.2

Ubuntu 16.04

Do you know how to fix it?  
Thanks

---

<div class="post-metadata">

**Author:** ![abcoathup](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/abcoathup/32/415_2.png) [@abcoathup](https://forum.openzeppelin.com/u/abcoathup)\
**Post date:** [July 15, 2020, 4:12am UTC](https://forum.openzeppelin.com/t/error-cannot-find-module-scrypt-shim/3316/2 "2020-07-15T04:12:02Z")

</div>

Hi @lucianosilvi,

Sorry for the late reply, I was on vacation last week.

I have moved to a new topic as it is easier to track.

What were you running when this occurred?

A similar error was reported in: [Cannot find module 'scrypt-shim' when using OpenZeppelin Test Environment](https://forum.openzeppelin.com/t/cannot-find-module-scrypt-shim-when-using-openzeppelin-test-environment/3147)

Can you try using node 10, you will need to remove `node_modules` and `package-lock.json`
