Win 8.1, Vagrant, Chef, Ubuntu, Ember-cli, ember n

2019-07-17 18:18发布

问题:

I'm on Windows 8.1, with vagrant, Cheffile and everything works.

Now I'm doing:

npm install -g ember-cli and it's ok.

But when I do this:

ember new sample in vagrant folder (the same folder I can view in Windows) I receive this error:

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)

I'm on vagrant last box (today I do vagrant box update) and node -v says me: v0.12.7 and npm -v says me: 3.3.3

What to do?

I tried: sudo (and not sudo) npm cache clean and also sudo for every other command. Nothing, the same errors.

What it means: npm ERR! tar.unpack untar error ???