Hi @gabba,
I am still struggling to get truffle installed. I got a new macbook and changed the terminal shell back to bash. However this is the error i keep getting
MacBook-Pro:~ CalvinCutlass$ npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.
See npm help json
for definitive documentation on these fields
and exactly what they do.
Use npm install <pkg>
afterwards to install a package and
save it as a dependency in the package.json file.
Press ^C at any time to quit.
package name: (turffle)
version: (1.0.0)
description: truffle
git repository:
license: (ISC)
About to write to /Users/CalvinCutlass/package.json:
{
“name”: “turffle”,
“version”: “1.0.0”,
“description”: “truffle”,
“main”: “index.js”,
“dependencies”: {},
“devDependencies”: {},
“scripts”: {
“test”: “mocha”
},
“keywords”: [
“truffle”
],
“author”: “me”,
“license”: “ISC”
}
Is this OK? (yes)
╭────────────────────────────────────────────────────────────────╮
│ │
│ New patch version of npm available! 6.14.4 → 6.14.5 │
│ Changelog: https://github.com/npm/cli/releases/tag/v6.14.5 │
│ Run npm install -g npm to update! │
│ │
╰────────────────────────────────────────────────────────────────╯
MacBook-Pro:~ CalvinCutlass$ npm install -g [email protected]
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
/Users/CalvinCutlass/npm-global/bin/truffle -> /Users/CalvinCutlass/npm-global/lib/node_modules/truffle/build/cli.bundled.js
[email protected] postinstall /Users/CalvinCutlass/npm-global/lib/node_modules/truffle
node ./scripts/postinstall.js
- Fetching solc version list from solc-bin. Attempt #1
- [email protected]
updated 1 package in 3.868s
MacBook-Pro:~ CalvinCutlass$ /Users/CalvinCutlass/npm-global/bin/truffle -v
Truffle v5.0.42 - a development framework for Ethereum
Usage: truffle [options]
Commands:
build Execute build pipeline (if configuration present)
compile Compile contract source files
config Set user-level configuration options
console Run a console with contract abstractions and commands available
create Helper to create new contracts, migrations and tests
debug Interactively debug any transaction on the blockchain (experimental)
deploy (alias for migrate)
develop Open a console with a local development blockchain
exec Execute a JS module within this Truffle environment
help List all commands or provide information about a specific command
init Initialize new and empty Ethereum project
install Install a package from the Ethereum Package Registry
migrate Run migrations to deploy contracts
networks Show addresses for deployed contracts on each network
obtain Fetch and cache a specified compiler
opcode Print the compiled opcodes for a given contract
publish Publish a package to the Ethereum Package Registry
run Run a third-party command
test Run JavaScript and Solidity tests
unbox Download a Truffle Box, a pre-built Truffle project
version Show version number and exit
watch Watch filesystem for changes and rebuild the project automatically
See more at http://truffleframework.com/docs
MacBook-Pro:~ CalvinCutlass$ truffle version
-bash: truffle: command not found
MacBook-Pro:~ CalvinCutlass$ export /Users/CalvinCutlass/npm-global/bin/:$PATH
-bash: export: `/Users/CalvinCutlass/npm-global/bin/:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin:/Library/Apple/usr/bin’: not a valid identifier
MacBook-Pro:~ CalvinCutlass$ li
-bash: li: command not found
MacBook-Pro:~ CalvinCutlass$ ls
Applications Music mkdir
Classes Pictures node_modules
Desktop Pro Tools npm-global
Documents Public package-lock.json
Downloads Samples package.json
Dropbox Sites test_directory
Incompatible Software The Rosetta Stone v3 truffle
Library busy cards
Movies jimi
MacBook-Pro:~ CalvinCutlass$ cd Desktop
MacBook-Pro:Desktop CalvinCutlass$ ls
20TR42649700942204264970.pdf Scan.pdf
ASSEMBLY Thassos, Giola lagoon, Greece.jpg
Coding Workbook1.xlsx
GAMES comp sci tutorial
Melissa Stuff ivan on tech.docx
Orders.xlsx site pics
Relocated Items viking
MacBook-Pro:Desktop CalvinCutlass$ cd Coding
MacBook-Pro:Coding CalvinCutlass$ ls
Smart_Contracts java 8.29.19.html smart contracts
coding 2020 logic.js website (exercise).html
hello world nodejs demo website.html
MacBook-Pro:Coding CalvinCutlass$ cd Smart_Contracts
MacBook-Pro:Smart_Contracts CalvinCutlass$ ls
HelloWorld package-lock.json
node_modules package.json
MacBook-Pro:Smart_Contracts CalvinCutlass$ cd HelloWorld
MacBook-Pro:HelloWorld CalvinCutlass$ truffle init
-bash: truffle: command not found
MacBook-Pro:HelloWorld CalvinCutlass$