11
8

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.

Vagrantのsynced_folderでnpm installするとError: UNKNOWN, symlink

Posted at
$ npm install yuicompressor
npm ERR! Error: UNKNOWN, symlink '../yuicompressor/nodejs/cli.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 2.6.32-573.el6.x86_64
npm ERR! command "/home/vagrant/.anyenv/envs/ndenv/versions/0.10.33/bin/node" "/home/vagrant/.anyenv/envs/ndenv/versions/0.10.33/bin/npm" "install" "yuicompressor"
npm ERR! cwd /var/www/vhosts/xxxx/current/clients
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! path ../yuicompressor/nodejs/cli.js
npm ERR! code UNKNOWN
npm ERR! errno -1
npm ERR! not ok code 0
  • /vagrant のようなsynced_folder でnpm installすると起きるようです。
  • パッケージはyuicompressor以外のものでも再現します。

発生した環境

  • npm 1.4.28
  • Vagrant 1.7.4
  • VirtualBox 5.0.4

ここで同様の報告事例があります。

回避方法

--no-bin-linksをつける

npm install --no-bin-links
11
8
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
11
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?