Answer the question
In order to leave comments, you need to log in
Why doesn't npm install work in Vagrant?
Hello, I installed Vagrant on Windows 10, created a virtual machine with Ubuntu 16.04, installed NodeJS and vue-cli, created a new project: vue init webpack test
Then I went to the project folder and started installing dependencies: npm install
The installation went fine, but at one moment an error appeared:
npm ERR! path /home/ubuntu/data/test/node_modules/fsevents/build/Release/.deps/Users/eshanker/Code/fsevents/lib
npm ERR! code ETXTBSY
npm ERR! errno -26
npm ERR! syscall rmdir
npm ERR! ETXTBSY: text file is busy, rmdir '/home/ubuntu/data/test/node_modules/fsevents/build/Release/.deps/Users/eshanker/Code/fsevents/lib'
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ubuntu/.npm/_logs/2017-12-07T08_22_39_819Z-debug.log
Answer the question
In order to leave comments, you need to log in
".deps/Users/eshanker/Code/fsevents/lib" - this part looks like it was linked from the host machine. This is true?
When installing modules in such a folder, an error often occurs, since npm in Linux does hardlinks or something like that.
And virtualbox does not support this, it seems that there is an option for this, but it somehow worked for me once.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question