我有一个用ubuntu/trusty64
盒子创建的Vagrant虚拟机(它运行Ubuntu 14.04.3 LTS(GNU/Linux 3.13.0-66-generic x86_64))和Ruby on Rails,Node.js(5.x,但之前是0.12)和Ember CLI.
我正在尝试通过运行创建一个新的Ember应用程序ember new frontend
,它总是给我一些错误:
Successfully initialized git. Installing packages for tooling via npm... npm ERR! tar.unpack untar error /home/vagrant/.npm/underscore.string/2.3.3/package.tgz npm ERR! tar.unpack untar error /home/vagrant/.npm/underscore.string/2.3.3/package.tgz npm ERR! tar.unpack untar error /home/vagrant/.npm/underscore.string/2.3.3/package.tgz npm ERR! tar.unpack untar error /home/vagrant/.npm/underscore.string/2.3.3/package.tgz npm ERR! tar.unpack untar error /home/vagrant/.npm/underscore.string/2.3.3/package.tgz npm ERR! tar.unpack untar error /home/vagrant/.npm/acorn/1.2.2/package.tgz npm ERR! tar.unpack untar error /home/vagrant/.npm/npm/2.14.10/package.tgz npm ERR! tar.unpack untar error /home/vagrant/.npm/bower/1.7.0/package.tgz EPROTO: protocol error, symlink '../semver/bin/semver' -> '/vagrant/emberrails/frontend/node_modules/ember-cli-dependency-checker/node_modules/.bin/semver' Error: EPROTO: protocol error, symlink '../semver/bin/semver' -> '/vagrant/emberrails/frontend/node_modules/ember-cli-dependency-checker/node_modules/.bin/semver' at Error (native)
为什么?我怎样才能解决这个问题?
当我尝试通过NPM自己安装一些软件包时会出现此问题,但后来我添加了--no-bin-links命令,一切都很好,但我没有这个选项ember new
.
–no-bin-links
-no-bin-links告诉npm不要创建任何符号链接.