Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/npm/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Npm VMware Ubuntu guest共享文件夹中的新Ember.js应用程序_Npm_Ember.js_Ember Cli_Vmware_Vmware Workstation - Fatal编程技术网

Npm VMware Ubuntu guest共享文件夹中的新Ember.js应用程序

Npm VMware Ubuntu guest共享文件夹中的新Ember.js应用程序,npm,ember.js,ember-cli,vmware,vmware-workstation,Npm,Ember.js,Ember Cli,Vmware,Vmware Workstation,我正在尝试在VMware中开发一个Ember.js应用程序。情况如下: 主持人:Windows7Pro 嘉宾:Ubuntu服务器18.04 安装Ember.js后,“Ember-v”返回: 如果我尝试从我的主目录创建新的Ember应用程序,没有问题,但是,由于我想从Windows主机操作系统编辑文件,当我尝试在共享文件夹(/mnt/hgfs/folder_name/)中执行相同操作(Ember new app_name)时,会引发一个错误: Error creating new applic

我正在尝试在VMware中开发一个Ember.js应用程序。情况如下:

  • 主持人:Windows7Pro
  • 嘉宾:Ubuntu服务器18.04
安装Ember.js后,“Ember-v”返回:

如果我尝试从我的主目录创建新的Ember应用程序,没有问题,但是,由于我想从Windows主机操作系统编辑文件,当我尝试在共享文件夹(/mnt/hgfs/folder_name/)中执行相同操作(Ember new app_name)时,会引发一个错误:

Error creating new application. Removing generated directory `./app_name`
Command failed: npm install --loglevel error
npm WARN deprecated core-js@2.4.1: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated exists-sync@0.0.4: Please replace with usage of fs.existsSync
npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path /mnt/hgfs/folder_name/app_name/node_modules/.acorn-dynamic-import.DELETE/node_modules/acorn
npm ERR! dest /mnt/hgfs/folder_name/app_name/node_modules/acorn-dynamic-import/node_modules/acorn
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, rename '/mnt/hgfs/folder_name/app_name/node_modules/.acorn-dynamic-import.DELETE/node_modules/acorn' -> '/mnt/hgfs/folder_name/app_name/node_modules/acorn-dynamic-import/node_modules/acorn'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2020-01-03T21_43_21_623Z-debug.log


Stack Trace and Error Report: /tmp/error.dump.1e44562d410bb23303e1023cf42f30f8.log
但是没有成功


如果您能帮助解决此问题,我们将不胜感激。

这可能不是一个好主意,因为共享文件夹速度较慢。您是否考虑过使用主文件夹并使用vscode remote ssh从windows编辑文件?这似乎是NPM的问题,而不是Ember CLI的问题。在windows或windows子系统Linux(WSL)上使用Ember CLI。您不使用其中一个的原因是什么?WSL在Windows 7I上不可用。我尝试将VM与共享文件夹一起使用,但遇到类似问题。我相信这与共享文件夹中的权限有关(NTFS不支持Ext4支持的权限系统)。我建议使用双引导(将Linux安装为第二个操作系统)。如果您不想这样做,带有GUI的完整虚拟机及其自己的虚拟驱动器也可以用于开发(尽管性能可能不太好),我同意@GennadyDogaev。这似乎与该共享文件夹的权限有关,因为在任何其他文件夹中都没有问题。有许多关于在共享文件夹中创建符号链接的讨论。也许这就是失败的原因。
Error creating new application. Removing generated directory `./app_name`
Command failed: npm install --loglevel error
npm WARN deprecated core-js@2.4.1: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated exists-sync@0.0.4: Please replace with usage of fs.existsSync
npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path /mnt/hgfs/folder_name/app_name/node_modules/.acorn-dynamic-import.DELETE/node_modules/acorn
npm ERR! dest /mnt/hgfs/folder_name/app_name/node_modules/acorn-dynamic-import/node_modules/acorn
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, rename '/mnt/hgfs/folder_name/app_name/node_modules/.acorn-dynamic-import.DELETE/node_modules/acorn' -> '/mnt/hgfs/folder_name/app_name/node_modules/acorn-dynamic-import/node_modules/acorn'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2020-01-03T21_43_21_623Z-debug.log


Stack Trace and Error Report: /tmp/error.dump.1e44562d410bb23303e1023cf42f30f8.log
# Make a directory for global installations:
mkdir ~/.npm-global

# Configure npm to use the new directory path:
npm config set prefix '~/.npm-global'

#Open or create a ~/.profile file and add this line:
export PATH=~/.npm-global/bin:$PATH

#Back on the command line, update your system variables:
source ~/.profile