0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【解決】npmでインストールしようとしたらsymlinkに関するエラーが出た

0
Posted at

hubotを作る際に、yo hubotコマンドを実行したところ
以下を含むエラーが出た。

 EPROTO: protocol error, symlink '../mime/cli.js' -> '/home/vagrant/workspace/nanyakanya/node_modules/.bin/mime'

解決方法は2つ。

①Vagrantfileの編集
Symbolic Links With Vagrant Windows
https://www.rudylee.com/blog/2014/10/27/symbolic-links-with-vagrant-windows/

config.vm.provider "virtualbox" do |v|
    v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
end

で共有ファイルに関する制限を解除

②vagrant up するコマンドプロンプトを管理者権限で起動
管理者権限ならsymlinkを作れるようになるらしい

0
0
0

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?