I am working on Ubuntu 18.04. I have installed Truffle from the following site:
I am trying to execute an application from the following site:
I am able to create the temporary file:
@lc2530hz:~/pet-shop-tutorial$ truffle unbox pet-shop You can improve web3's peformance when running Node.js versions older than 10.5.0 by installing the (deprecated) scrypt package in your project Starting unbox... ================= ✔ Preparing to download box ✔ Downloading npm WARN deprecated firstname.lastname@example.org: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. npm WARN deprecated email@example.com: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated firstname.lastname@example.org: https://github.com/lydell/resolve-url#deprecated npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: email@example.com npm WARN firstname.lastname@example.org No description npm WARN email@example.com No repository field. ✔ cleaning up temporary files ✔ Setting up box Unbox successful, sweet! Commands: Compile: truffle compile Migrate: truffle migrate Test contracts: truffle test Run dev server: npm run dev @lc2530hz:~/pet-shop-tutorial$
However I am getting error in compilation
$ truffle compile You can improve web3's peformance when running Node.js versions older than 10.5.0 by installing the (deprecated) scrypt package in your project Compiling your contracts... =========================== ✔ Fetching solc version list from solc-bin. Attempt #1 ✔ Downloading compiler. Attempt #1. Error: Could not find __Truffle__NotFound.sol from any sources; imported from /home/zulfi/pet-shop-tutorial/contracts/adoption.sol at Resolver.<anonymous> (/usr/local/lib/node_modules/truffle/build/webpack:/packages/resolver/dist/lib/resolver.js:53:1) at Generator.next (<anonymous>) at fulfilled (/usr/local/lib/node_modules/truffle/build/webpack:/packages/resolver/dist/lib/resolver.js:5:42) at <anonymous> Truffle v5.1.27 (core: 5.1.27) Node v8.10.0
Somebody please guide me.
Have I installed an older version? Please tell me how to install the updated version for Ubuntu 18.04?