Not able to install truffle using npm install -g truffle

0 votes

I am trying to install truffle and when I run the mentioned command, I get this error:

$npm install -g truffle

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/truffle

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules

/usr/local/lib

`-- truffle@4.1.14


npm ERR! Linux 4.15.0-39-generic

npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "truffle"

npm ERR! node v8.10.0

npm ERR! npm  v3.5.2

npm ERR! path /usr/local/lib/node_modules/truffle

npm ERR! code EACCES

npm ERR! errno -13

npm ERR! syscall access


npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules/truffle'

npm ERR!  { Error: EACCES: permission denied, access '/usr/local/lib/node_modules/truffle'

npm ERR!   errno: -13,

npm ERR!   code: 'EACCES',

npm ERR!   syscall: 'access',

npm ERR!   path: '/usr/local/lib/node_modules/truffle' }
Nov 29, 2018 in Blockchain by digger
• 27,630 points
494 views

1 answer to this question.

0 votes

You need root access to install truffle, run this command as root and in should work:

sudo npm install -g truffle
answered Nov 29, 2018 by Omkar
• 67,380 points

Related Questions In Blockchain

0 votes
1 answer

Not able to install truffle

This error occurs when there are permission ...READ MORE

answered Jan 29 in Blockchain by Omkar
• 67,380 points
171 views
0 votes
1 answer

Not able to send payments using Blockchain API.

Try the following code. It should help ...READ MORE

answered Jul 31, 2018 in Blockchain by slayer
• 29,050 points
41 views
0 votes
1 answer

Not able to run chaincode locally using docker

Looks like the Fabric team introduced "nopkcs11" ...READ MORE

answered Sep 18, 2018 in Blockchain by slayer
• 29,050 points
28 views
0 votes
1 answer

Not able to invoke a contract in Ethereum Private chain using geth

Hope this helps: contract mortal { /* ...READ MORE

answered Oct 22, 2018 in Blockchain by Omkar
• 67,380 points
41 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
138 views
0 votes
1 answer
0 votes
1 answer

Protocols used in a distributed/dlt system for the nodes to establish communication

yes all are over TCP/IP connections secured by TLS encryption in hashgraph architecture-hashgraph, ...READ MORE

answered Aug 6, 2018 in Blockchain by ariaholic
• 7,340 points
75 views
0 votes
1 answer

Not able to install truffle

I know this is very frustrating, I ...READ MORE

answered Jan 17 in Blockchain by Omkar
• 67,380 points
337 views
0 votes
1 answer

Not able to install truffle-contract

There’s a permission error. Run this command ...READ MORE

answered Jan 23 in Blockchain by Omkar
• 67,380 points
328 views