質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Node.js

Node.jsとはGoogleのV8 JavaScriptエンジンを使用しているサーバーサイドのイベント駆動型プログラムです。

gulp

gulpは、Node.jsをベースとしたタスク自動化ツールの一つ。ストリームでファイルを処理することが特徴です。CSSプリプロセッサの使用時のコンパイルや、CSS・JavaScriptファイルの圧縮・結合などを自動的に行うことができます。

Q&A

1回答

1350閲覧

gulpを使用するためのNode.js,anyenvの開発環境作成(macos)

chihiro_nemoto

総合スコア6

Node.js

Node.jsとはGoogleのV8 JavaScriptエンジンを使用しているサーバーサイドのイベント駆動型プログラムです。

gulp

gulpは、Node.jsをベースとしたタスク自動化ツールの一つ。ストリームでファイルを処理することが特徴です。CSSプリプロセッサの使用時のコンパイルや、CSS・JavaScriptファイルの圧縮・結合などを自動的に行うことができます。

0グッド

0クリップ

投稿2019/06/26 15:25

前提・実現したいこと

sassや絵jsのコンパイルのために
Node.jsをインストールしてgulp
を使用したいです。
下記サイトを参考に進めております。

https://qiita.com/kawa64372358/items/758c1ce481524cd62a8f

■■な機能を実装中に以下のエラーメッセージが発生しました。

発生している問題・エラーメッセージ

エラーメッセージ ANYENV_DEFINITION_ROOT(/Users/Inori/.config/anyenv/anyenv-install) doesn't exist. You can initialize it by: > anyenv install --init

試したこと

インストールした階層を消してサイトに沿って
再インストールしてみたが、上記エラーの.configが見つからない
●現状は下記階層です。
https://gyazo.com/4eec27963f911e804ce27071f9beb054

初心者で、グローバルインストールやパスを通すということも
難しいレベルですが、調べながら対応しております。

このエラーメッセージを検索しても出てこずターミナルではこういった現象です。

YutonoMBP:~

1Homebrew 2.1.6 2Homebrew/homebrew-core (git revision dcbe; last commit 2019-06-26) 3YutonoMBP:~ Inori$ git clone https://github.com/riywo/anyenv ~/.anyenv 4Cloning into '/Users/Inori/.anyenv'... 5remote: Enumerating objects: 384, done. 6remote: Total 384 (delta 0), reused 0 (delta 0), pack-reused 384 7Receiving objects: 100% (384/384), 65.00 KiB | 109.00 KiB/s, done. 8Resolving deltas: 100% (170/170), done. 9YutonoMBP:~ Inori$ echo 'export PATH="$HOME/.anyenv/bin:$PATH"' >> ~/.bash_profile 10YutonoMBP:~ Inori$ echo 'eval "$(anyenv init -)"' >> ~/.bash_profile 11YutonoMBP:~ Inori$ exec $SHELL -l 12ANYENV_DEFINITION_ROOT(/Users/Inori/.config/anyenv/anyenv-install) doesn't exist. You can initialize it by: 13> anyenv install --init 14YutonoMBP:~ Inori$ anyenv 15anyenv 1.1.1 16Usage: anyenv <command> [<args>] 17 18Some useful anyenv commands are: 19 commands List all available anyenv commands 20 local Show the local application-specific Any version 21 global Show the global Any version 22 install Install a **env 23 uninstall Uninstall a specific **env 24 version Show the current Any version and its origin 25 versions List all Any versions available to **env 26 27See `anyenv help <command>' for information on a specific command. 28For full documentation, see: https://github.com/anyenv/anyenv#readme 29YutonoMBP:~ Inori$ anyenv install 30Usage: anyenv install [-f|--force] [-s/--skip-existing] <**env> 31 anyenv install -l|--list 32 anyenv install --init [git-url] [git-ref] 33 anyenv install --force-init [git-url] [git-ref] 34 anyenv install --update 35 36 -l/--list List all available **envs 37 -f/--force Install even if the **env appears to be installed already 38 -s/--skip-existing Skip if the version appears to be installed already 39 --init Initialize install manifests with specified git repo or anyenv/anyenv-install 40 --force-init Initialize install manifests without confirmation 41 --update Update install manifests 42 43YutonoMBP:~ Inori$ anyenv install --list 44ANYENV_DEFINITION_ROOT(/Users/Inori/.config/anyenv/anyenv-install) doesn't exist. You can initialize it by: 45> anyenv install --init 46YutonoMBP:~ Inori$ anyenv 47コード

お力を貸していただけませんでしょうか?
よろしくお願いいたします。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

anyenv install --init しても動かないですかね?
それとも上記コマンドでエラーがでている、と言う状態でしょうか???

anyenv 読み込まれていない感じもあるので一度 exec $SHELL -l を実行してから anyenv install --init してみるとどうでしょうか???

投稿2019/06/27 00:35

t_kusakabe74

総合スコア549

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

chihiro_nemoto

2019/06/27 03:18 編集

t_kusakabe74さま ご回答ありがとうございます。感謝です。。 上記試しましたが YutonoMBP:~ Inori$ anyenv install --list ANYENV_DEFINITION_ROOT(/Users/Inori/.config/anyenv/anyenv-install) doesn't exist. You can initialize it by: > anyenv install --init YutonoMBP:~ Inori$ anyenv こちらが出てしまい。。仕事にならず困っております。。 引き続き調べます。
t_kusakabe74

2019/06/27 04:56

やっぱりanyenvが使えていなさそうですね???? ただ git cloneができているのはgyazoでわかるので、あとはpathが怪しいかなと思います。 ``` echo 'export PATH="$HOME/.anyenv/bin:$PATH"' >> ~/.bash_profile ``` とすると、pathを通せるのですが ``` インストールした階層を消してサイトに沿って 再インストールしてみたが、上記エラーの.configが見つからない ``` とのことなので、 .bash_profileに同じ内容が重複しているかもですね。。。 一度、.bash_profile がどうなっているのかを確認してみて ``` exec $SHELL -l ``` としてみるとどうでしょうか。。。?
harrek

2019/06/27 20:24

`anyenv install --init` とする必要がありますがコメントには`anyenv install --list`となっています(`list`ではなく`init`です)。正しくコマンド入力できていますか?
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問