LoginSignup
40
20

More than 3 years have passed since last update.

nodenv のインストール時に default-packages file not found と表示される問題

Posted at

% nodenv install 10.19.0
nodenv: /Users/myname/.anyenv/envs/nodenv/versions/10.19.0 already exists
continue with installation? (y/N) y
Downloading node-v10.19.0-darwin-x64.tar.gz...
-> https://nodejs.org/dist/v10.19.0/node-v10.19.0-darwin-x64.tar.gz
Installing node-v10.19.0-darwin-x64...
Installed node-v10.19.0-darwin-x64 to /Users/myname/.anyenv/envs/nodenv/versions/10.19.0

nodenv: default-packages file not found

解決策

default-packages file を作成する

% touch $(nodenv root)/default-packages

その他

anyenv を使って nodenv 環境を構築した際に遭遇した。
nodenv の nodenv-default-packages という拡張で使用されるファイルの様子。

nodenv/nodenv-default-packages: Install default packages every time you install a new version of Node
https://github.com/nodenv/nodenv-default-packages

40
20
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
40
20