Truffle installation issue “-bash : truffle: command not found”

Truffle installation issue “-bash : truffle: command not found”

i'm trying to set up the environment for developing dapps on my mac using&nbsp;<a href="https://medium.com/tomochain/how-to-build-a-dapp-on-tomochain-85532a1192e7" target="_blank">https://medium.com/tomochain/how-to-build-a-dapp-on-tomochain-85532a1192e7</a>&nbsp;tutorial. upon installing truffle, i am unable to use truffle commands from project directories. i think there is some issue with setting up the path variable or truffle not being a global installation. Here is the output from the console

i'm trying to set up the environment for developing dapps on my mac using https://medium.com/tomochain/how-to-build-a-dapp-on-tomochain-85532a1192e7 tutorial. upon installing truffle, i am unable to use truffle commands from project directories. i think there is some issue with setting up the path variable or truffle not being a global installation. Here is the output from the console

Sheikhs-MacBook-Air:~ Zubair$ node -v v10.15.1

Sheikhs-MacBook-Air:~ Zubair$ npm -v 6.4.1

Sheikhs-MacBook-Air:~ Zubair$ truffle version -bash: truffle: command not found

Sheikhs-MacBook-Air:~ Zubair$ ./node_modules/.bin/truffle version Truffle v5.0.3 (core: 5.0.3) Solidity v0.5.0 (solc-js) Node v10.15.1

Sheikhs-MacBook-Air:~ Zubair$ cd pet-shop-tutorial

Sheikhs-MacBook-Air:pet-shop-tutorial Zubair$ truffle version -bash: truffle: command not found

Sheikhs-MacBook-Air:pet-shop-tutorial Zubair$ ./node_modules/.bin/truffle version -bash: ./node_modules/.bin/truffle: No such file or directory

Sheikhs-MacBook-Air:pet-shop-tutorial Zubair$ npm config get prefix /Users/Zubair/pet-shop-tutorial/~.npm-global

npm solidity blockchain

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

5 Blockchain Applications That Have Transformed the World of Technology

The blockchain is the decentralized database of the blocks of information, which gets recorded in the chain format and linked in a secured crypto graphical manner. This technology ensures proper safety of the data due to its secure nature, and it totally changes how people carry out transactions. It also brings about a faster and secure process of validating information needed to establish reliability.

What Is The Difference Between Blockchain And Bitcoin?

Our Blockchain Online Training will provide you to learn about Blockchain technology aspects with realty. Our Blockchain Course also includes live sessions, live Projects

What Makes a Blockchain Secure?

Our Blockchain Online Training will provide you to learn about Blockchain technology aspects with realty. Our Blockchain Course also includes live sessions, live Projects

Revolutionary Application of Blockchain Technology

Our Blockchain Online Training will provide you to learn about Blockchain technology aspects with realty. Our Blockchain Course also includes live sessions, live Projects

The Future Of Blockchain Technology And Cryptocurrency Applications

Our Blockchain Online Training will provide you to learn about Blockchain technology aspects with realty. Our Blockchain Course also includes live sessions, live Projects