简要错误类型
- text file is busy, rmdir
- EPERM: operation not permitted, rename
- rofs EROFS: read-only file system, symlink
- windows权限问题? 右键 Administrator 运行VirtualBox
- 网络问题? npm install -g cnpm –registry=https://registry.npm.taobao.org
- 符号链接?VBoxManage setextradata YOURVMNAME VBoxInternal2/SharedFoldersEnableSymlinksCreate/YOURSHAREFOLDERNAME 1 校验 VBoxManage getextradata YOURVMNAME enumerate PS:npm install –no-bin-links
通过上面三种方法处理后, text file is busy, rmdir 这种问题还是会出现.
估计共享文件夹出现的, 又感觉是网络问题. 但是如果将npm install 不在共享的文件夹内执行. 换到其它的文件侧可以执行成功
相关资料
VirtualBox shared folder symlink error
Npm errors when installing packages on windows share