LoginSignup
0
0

More than 3 years have passed since last update.

Blueprintインストールメモ

Last updated at Posted at 2021-03-26

マークダウンをhtmlに変換するaglioのインストールに失敗したためメモ

$ npm i -g aglio

EACCES: permission denied, mkdir './cache'

こんな感じのメッセージがでた。権限周り?。

環境

$ cat /etc/*release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
Amazon Linux release 2 (Karoo)

npmインストール

参考:https://qiita.com/rakuraku0615/items/dd5bcc1f8641c5bbb091

# リポジトリの取得
$ curl -sL https://rpm.nodesource.com/setup_8.x | sudo bash -

# nodejsのインストール
$ sudo yum install -y nodejs

aglioインストール

#root権限でnpm install
$ sudo npm install -g aglio --unsafe-perm=true --allow-root

#変換してみる
$ aglio -i test.apib -o test.html
$ ls
test.apib  test.html

rootでnpm installができてないのが原因でした。完。

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0