Node.js PHP project Vagrant安装错误[NodeJs安装步骤]

Node.js PHP project Vagrant安装错误[NodeJs安装步骤],node.js,npm,vagrant,virtualbox,symlink,Node.js,Npm,Vagrant,Virtualbox,Symlink,我正在WINDOWS 10上的virtualbox上使用vagrant安装我的PHP项目,当我点击 流浪汉 在本步骤的安装过程中,安装开始 ==> default: TASK [app : Angular - Install dependencies] 我犯了这个错误 ==> default: TASK [app : Angular - Install dependencies] ************************************ ==

我正在WINDOWS 10上的virtualbox上使用vagrant安装我的PHP项目,当我点击

流浪汉

在本步骤的安装过程中,安装开始

==> default: TASK [app : Angular - Install dependencies]
我犯了这个错误

        ==> default: TASK [app : Angular - Install dependencies] ************************************
    ==> default: fatal: [10.91.0.102]: FAILED! => {"changed": true, "cmd": "npm install", "delta": "0:06:23.111672", "end": "2017-10-05 05:46:47.136976", 
    "failed": true, "msg": "non-zero return code", "rc": 185, "start": "2017-10-05 05:40:24.025304", "stderr": "npm WARN deprecated typings@2.1.1: 
    Typings is deprecated in favor of NPM @types -- see README for more information\nnpm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue\nnpm WARN optional
     SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):\nnpm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {\"os\":\"darwin\",\"arch\":\"any\"} 
     (current: {\"os\":\"linux\",\"arch\":\"x64\"})\nnpm WARN ngx-bootstrap@2.0.0-beta.6 requires a peer of @angular/common@>=4.3.0
     but none was installed.\nnpm WARN ngx-bootstrap@2.0.0-beta.6 requires a peer of @angular/compiler@>=4.3.0 but none was installed.\nnpm WARN ngx-bootstrap@2.0.0-beta.6 requires a peer of @angular/core@>=4.3.0
     but none was installed.\nnpm WARN ngx-bootstrap@2.0.0-beta.6 requires a peer of @angular/forms@>=4.3.0 but none was installed.\nnpm WARN ngx-bootstrap@2.0.0-beta.6 requires a peer of rxjs@>=5.4.3 
     but none was installed.\nnpm WARN ngx-bootstrap@2.0.0-beta.6 requires a peer of typescript@>=2.4.2 but none was installed.\nnpm ERR! Linux 3.13.0-132-generic\nnpm ERR! argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" 
     \"install\"\nnpm ERR! node v7.0.0\nnpm ERR! npm  v3.10.8\nnpm ERR! path ../typescript/bin/tsserver\nnpm ERR! code EPROTO\nnpm ERR! errno -71\nnpm ERR! syscall symlink\n\nnpm 
     ERR! EPROTO: protocol error, symlink '../typescript/bin/tsserver' -> '/vagrant/angular_admin/node_modules/@angular-devkit/build-optimizer/node_modules/.bin/tsserver'\nnpm ERR! \nnpm ERR! If you need help,
     you may report this error at:\nnpm ERR!     <https://github.com/npm/npm/issues>\n\nnpm ERR! Please include the following file with any support request:\nnpm ERR!    
     /vagrant/angular_admin/npm-debug.log", "stderr_lines": ["npm WARN deprecated typings@2.1.1: Typings is deprecated in favor of NPM @types -- see README for more information", "npm WARN deprecated minimatch@0.3.0: 
     Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue", "npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):", 
     "npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {\"os\":\"darwin\",\"arch\":\"any\"} (current: {\"os\":\"linux\",\"arch\":\"x64\"})", "npm WARN ngx-bootstrap@2.0.0-beta.6 
     requires a peer of @angular/common@>=4.3.0 but none was installed.", "npm WARN ngx-bootstrap@2.0.0-beta.6 requires a peer of @angular/compiler@>=4.3.0 but none was installed.", "npm WARN ngx-bootstrap@2.0.0-beta.6 
     requires a peer of @angular/core@>=4.3.0 but none was installed.", "npm WARN ngx-bootstrap@2.0.0-beta.6 requires a peer of @angular/forms@>=4.3.0 but none was installed.", "npm WARN ngx-bootstrap@2.0.0-beta.6
     requires a peer of rxjs@>=5.4.3 but none was installed.", "npm WARN ngx-bootstrap@2.0.0-beta.6 requires a peer of typescript@>=2.4.2 but none was installed.", "npm ERR! Linux 3.13.0-132-generic", 
     "npm ERR! argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"install\"", "npm ERR! node v7.0.0", "npm ERR! npm  v3.10.8", "npm ERR! path ../typescript/bin/tsserver", "npm ERR! code EPROTO", "npm ERR! errno -71",
     "npm ERR! syscall symlink", "", "npm ERR! EPROTO: protocol error, symlink '../typescript/bin/tsserver' -> '/vagrant/angular_admin/node_modules/@angular-devkit/build-optimizer/node_modules/.bin/tsserver'", "npm ERR! ",
     "npm ERR! If you need help, you may report this error at:", "npm ERR!     <https://github.com/npm/npm/issues>", "", "npm ERR! Please include the following file with any support request:", "npm ERR!    
     /vagrant/angular_admin/npm-debug.log"], "stdout": "angular_admin@2.0.1 /vagrant/angular_admin\n├── @angular/animations@4.0.3 \n├── UNMET PEER DEPENDENCY @angular/common@4.0.3\n├── UNMET PEER DEPENDE
错误太长了,所以我只是复制了它的开始部分

现在它显示了这个错误


非常感谢您的帮助。

看起来您不能使用符号链接

您有几个选择:

尝试将-no bin links标志添加到npm安装命令或设置它 在全局配置中作为默认npm配置设置bin链接 错误的 如果你在Windows上运行Vagrant,请尝试运行 流浪者被任命为行政长官。 如果不希望以管理员身份运行VirtualBox,可以允许为所有用户创建符号链接:

打开本地组策略编辑器gpedit.msc 编辑“创建符号链接”策略:计算机配置→ Windows设置→ 安全设置→ 地方的 政策→ 用户权限分配→ 创建符号链接
错误消息是关于NodeJS包的问题,而不是PHP-@Neodan是的,这是NodeJS软件包问题,我如何解决?如果没有提供正确的答案,请不要忘记标记答案或添加您的答案。换言之,这个问题在将来将毫无用处。@Neodan我仍然会犯同样的错误,还没有成功。。!我已经在npm安装命令中添加了-no-bin-links标志,现在没有显示long错误,但是显示这个错误似乎是由于脚本中的递归调用太多造成的。试着看一下:github.com/npm/npm/issues/9953