Hello,
I’m trying out the 2.3.0-rc.3 release candidate so that I can create a contract that is the recipient of ERC-777 tokens. I noticed that when I include this version in my package.json file, I encounter the following error when running npm install
. It looks like the bin/compile.sh
that was recently added is using truffle
from the command-line. If open-zeppelin uses truffle
shouldn’t it have truffle
in the dependencies
of its package.json instead of devDependencies
, as devDependencies
are not included in the npm module. Otherwise, consider using peerDependencies
so you can signal to people that this package requires having a truffle
dependency.
$ npm install
> openzeppelin-solidity@2.3.0-rc.3 prepack /Users/hassan/.npm/_cacache/tmp/git-clone-7a8cbaa8
> npm run build
> openzeppelin-solidity@2.3.0-rc.3 build /Users/hassan/.npm/_cacache/tmp/git-clone-7a8cbaa8
> scripts/build.sh
> openzeppelin-solidity@2.3.0-rc.3 compile /Users/hassan/.npm/_cacache/tmp/git-clone-7a8cbaa8
> truffle compile
sh: truffle: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! openzeppelin-solidity@2.3.0-rc.3 compile: `truffle compile`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the openzeppelin-solidity@2.3.0-rc.3 compile script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/hassan/.npm/_logs/2019-05-21T15_43_08_687Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! openzeppelin-solidity@2.3.0-rc.3 build: `scripts/build.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the openzeppelin-solidity@2.3.0-rc.3 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/hassan/.npm/_logs/2019-05-21T15_43_08_717Z-debug.log
npm ERR! premature close
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/hassan/.npm/_logs/2019-05-21T15_43_09_228Z-debug.log