Giter VIP home page Giter VIP logo

Comments (6)

WAY29 avatar WAY29 commented on August 23, 2024

报错在于/Users/bollo/yakit-projects 这个文件夹的权限问题,请使用root删除这个文件夹之后正常启动yakit即可

from yakit.

bollowang avatar bollowang commented on August 23, 2024

报错在于/Users/bollo/yakit-projects 这个文件夹的权限问题,请使用root删除这个文件夹之后正常启动yakit即可

if [ "$(uname)" == "Darwin" ]; then
if [ "$(uname -m)" == "arm64" ]; then
echo "Install for Darwin(MacOS) ARM64"
echo "-------------------------------------"
echo "Downloading for yak_darwin_arm64"
wget https://aliyun-oss.yaklang.com/yak/latest/yak_darwin_arm64

echo "Chmod +x yak_darwin_arm64"
chmod +x ./yak_darwin_arm64
echo "Start install yak_darwin_arm64 (ADD Yak to ENV PATH)"
sudo ./yak_darwin_arm64 install
yak version

echo "Cleaning cache file..."
rm ./yak_darwin_arm64

echo "Finished"

那yak在mac上的安装就不应该用sudo啊,不用sudo也能写

from yakit.

bollowang avatar bollowang commented on August 23, 2024

报错在于/Users/bollo/yakit-projects 这个文件夹的权限问题,请使用root删除这个文件夹之后正常启动yakit即可

修改成安装的时候使用sudo ./install-latest-yak.sh安装,install-latest-yak.sh 里面的sudo去掉就可以了

from yakit.

bollowang avatar bollowang commented on August 23, 2024

报错在于/Users/bollo/yakit-projects 这个文件夹的权限问题,请使用root删除这个文件夹之后正常启动yakit即可

sudo在里面和外面控制的作用域不一样,在外面不会用root用户写其他用户目录文件夹

╭─ ~ k8s-01.datacenter.gdd.com/log-center
╰─❯ ls |grep yakit-projects
drwxr-xr-x@ 20 bollo staff 640B 8 9 08:22 yakit-projects

from yakit.

WAY29 avatar WAY29 commented on August 23, 2024

安装是必须使用sudo的,因为他会将二进制文件移动到/usr/local/bin目录,你这个报错是因为你以前可能以ROOT安装过yak,将yakit-project目录写成了root所有

from yakit.

WAY29 avatar WAY29 commented on August 23, 2024

问题是否已经解决?

from yakit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.