Node.js Win 8.1,Vagrant,Chef,Ubuntu,Ember cli,Ember new“;npm错误!tar.unpack untar error/home/vagrant/.npm/";

Node.js Win 8.1,Vagrant,Chef,Ubuntu,Ember cli,Ember new“;npm错误!tar.unpack untar error/home/vagrant/.npm/";,node.js,ember.js,npm,vagrant,chef-infra,Node.js,Ember.js,Npm,Vagrant,Chef Infra,我使用的是Windows8.1,有流浪汉、Cheffile,一切正常 现在我在做: npm安装-g ember cli一切正常 但当我这么做的时候: ember new sample在vagrant文件夹(与我可以在Windows中查看的文件夹相同)中,我收到此错误: version: 1.13.8 Could not find watchman, falling back to NodeWatcher for file system events. Visit http://www.ember

我使用的是Windows8.1,有流浪汉、Cheffile,一切正常

现在我在做:

npm安装-g ember cli一切正常

但当我这么做的时候:

ember new sample在vagrant文件夹(与我可以在Windows中查看的文件夹相同)中,我收到此错误:

version: 1.13.8
Could not find watchman, falling back to NodeWatcher for file system events.
Visit http://www.ember-cli.com/user-guide/#watchman for more info.
installing app
  create .bowerrc
  create .editorconfig
  create .ember-cli
  create .jshintrc
  create .travis.yml
  create .watchmanconfig
  create README.md
  create app/app.js
  create app/components/.gitkeep
  create app/controllers/.gitkeep
  create app/helpers/.gitkeep
  create app/index.html
  create app/models/.gitkeep
  create app/router.js
  create app/routes/.gitkeep
  create app/styles/app.css
  create app/templates/application.hbs
  create app/templates/components/.gitkeep
  create bower.json
  create config/environment.js
  create ember-cli-build.js
  create .gitignore
  create package.json
  create public/crossdomain.xml
  create public/robots.txt
  create testem.json
  create tests/.jshintrc
  create tests/helpers/resolver.js
  create tests/helpers/start-app.js
  create tests/index.html
  create tests/test-helper.js
  create tests/unit/.gitkeep
  create vendor/.gitkeep
Installing packages for tooling via npm...
npm ERR! tar.unpack untar error /home/vagrant/.npm/git-repo-info/1.1.2/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/broccoli-plugin/1.2.0/package.tgz
npm ERR! tar.unpack untar error /home/vagrant/.npm/hash-for-dep/1.0.1/package.tgz
npm ERR! tar.unpack untar error /home/vagrant/.npm/broccoli-plugin/1.2.0/package.tgz
npm ERR! tar.unpack untar error /home/vagrant/.npm/broccoli-plugin/1.2.0/package.tgz
npm ERR! tar.unpack untar error /home/vagrant/.npm/hash-for-dep/1.0.1/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/broccoli-plugin/1.2.0/package.tgz
npm ERR! tar.unpack untar error /home/vagrant/.npm/json5/0.4.0/package.tgz
npm ERR! tar.unpack untar error /home/vagrant/.npm/source-map/0.1.32/package.tgz
npm ERR! tar.unpack untar error /home/vagrant/.npm/defs/1.1.0/package.tgz
npm ERR! tar.unpack untar error /home/vagrant/.npm/ember-cli/1.13.8/package.tgz
EPROTO, mkdir '/vagrant/test/node_modules/ember-cli-app-version/node_modules/git-repo-version/node_modules/git-repo-info/tests/fixtures/branch-with-slashes/dot-git/refs/heads/feature/branch/with'
Error: EPROTO, mkdir '/vagrant/test/node_modules/ember-cli-app-version/node_modules/git-repo-version/node_modules/git-repo-info/tests/fixtures/branch-with-slashes/dot-git/refs/heads/feature/branch/with'
    at Error (native)
我在vagrant last box(今天我更新了Wagrant box)上,
node-v
说我:v0.12.7
npm-v
说我:3.3.3

怎么办

我尝试了:sudo(而不是sudo)npm cache clean以及sudo每执行一次命令。没什么,同样的错误


它的意思是:
npm ERR!tar.unpack untar错误

你能清理npm吗,
npm缓存清理
我已经做了。没什么,没什么,没什么。同样在
vagrant-halt-default
vagrant-up
之后。还尝试了运行
sudo-npm-install-g-ember-cli
?是的,我尝试过。没有什么。相同的错误。可能与此无关,但主机系统上的/vagrant安装在哪里?windows上的完整路径是否超过256个字符?它可能拒绝在windows上创建文件夹,因为路径太长。您可以通过将其移动到较短的路径(例如c:\test)并在vagrant中装入该文件夹来进行测试。