Closed abcoathup closed 4 years ago
I have the same error with node v10:
$ nvm current
v10.10.0
$ npm install
$ npx oz init
Cannot find module 'scrypt-shim'
I'm using ubuntu 18.04. Is there any workaround?
Hi @ialberquilla,
I was able to reproduce the error using node v10.10.0. Changing to the latest node v10 meant I didn't get the issue.
$ nvm install v10
$ nvm current
v10.21.0
$ npm init -y
$ npm i @openzeppelin/cli
$ npx oz init
? Welcome to the OpenZeppelin SDK! Choose a name for your project
Thanks @abcoathup
I am closing this issue as node 11 is no longer supported. We should use either node 10 or node 12.
https://nodejs.org/en/about/releases/ Major Node.js versions enter Current release status for six months, which gives library authors time to add support for them. After six months, odd-numbered releases (9, 11, etc.) become unsupported, and even-numbered releases (10, 12, etc.) move to Active LTS status and are ready for general use. LTS release status is "long-term support", which typically guarantees that critical bugs will be fixed for a total of 30 months. Production applications should only use Active LTS or Maintenance LTS releases.
npx oz init
results in error "Cannot find module 'scrypt-shim'" using node v11.15Environment: Windows Subsystem for Linux 2 on Windows 10
Work around change to node 10 and remove
node_modules
andpackage-lock.json
: