简体   繁体   中英

Command failed: git clone in Ubuntu

I'm currently new to Ubuntu, and blockchain. I'm trying to setup for a Hyperledger Burrow project on Ubuntu. Firstly, I clone the project from github, then install "snak" (a npm that helps you interact with Burrow blockchain) via command line:

npm install -g snak

It works, but when i check folder node_modules there's no snak npm. So I try again with this:

sudo npm install -g snak

This time there are some errors as below在此处输入图片说明

What should I do to fix this?

if you check 3rd line from the bottom of the screenshot, you will see a permission denied error. Make sure .npm folder is owned by the user.

sudo chown -R $USER:$USER ~/.npm

may fix this permission error.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM