2017-10-05 4 views
0

que je fais la configuration de mon projet PHP en utilisant errante sur VirtualBox sur WINDOWS 10, sur la ligne de commande Quand je frappeprojet PHP Vagrant erreur de configuration [étape d'installation NodeJS]

vagrant up

installation commence, au cours de l'installation A cette étape

==> default: TASK [app : Angular - Install dependencies] 

Je reçois cette erreur

 ==> 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 [email protected]: 
    Typings is deprecated in favor of NPM @types -- see README for more information\nnpm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue\nnpm WARN optional 
    SKIPPING OPTIONAL DEPENDENCY: [email protected]^1.0.0 (node_modules/chokidar/node_modules/fsevents):\nnpm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {\"os\":\"darwin\",\"arch\":\"any\"} 
    (current: {\"os\":\"linux\",\"arch\":\"x64\"})\nnpm WARN [email protected] requires a peer of @angular/[email protected]>=4.3.0 
    but none was installed.\nnpm WARN [email protected] requires a peer of @angular/[email protected]>=4.3.0 but none was installed.\nnpm WARN [email protected] requires a peer of @angular/[email protected]>=4.3.0 
    but none was installed.\nnpm WARN [email protected] requires a peer of @angular/[email protected]>=4.3.0 but none was installed.\nnpm WARN [email protected] requires a peer of [email protected]>=5.4.3 
    but none was installed.\nnpm WARN [email protected] requires a peer of [email protected]>=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 [email protected]: Typings is deprecated in favor of NPM @types -- see README for more information", "npm WARN deprecated [email protected]: 
    Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue", "npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]^1.0.0 (node_modules/chokidar/node_modules/fsevents):", 
    "npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {\"os\":\"darwin\",\"arch\":\"any\"} (current: {\"os\":\"linux\",\"arch\":\"x64\"})", "npm WARN [email protected] 
    requires a peer of @angular/[email protected]>=4.3.0 but none was installed.", "npm WARN [email protected] requires a peer of @angular/[email protected]>=4.3.0 but none was installed.", "npm WARN [email protected] 
    requires a peer of @angular/[email protected]>=4.3.0 but none was installed.", "npm WARN [email protected] requires a peer of @angular/[email protected]>=4.3.0 but none was installed.", "npm WARN [email protected] 
    requires a peer of [email protected]>=5.4.3 but none was installed.", "npm WARN [email protected] requires a peer of [email protected]>=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": "[email protected] /vagrant/angular_admin\n├── @angular/[email protected] \n├── UNMET PEER DEPENDENCY @angular/[email protected]\n├── UNMET PEER DEPENDE 

L'erreur est si longue, donc j'ai juste copié une partie de début.

Maintenant son montrant cette erreur http://mysticpaste.com/3OP1NJG73p

Toute aide est très appréciée.

+0

Le message d'erreur est à propos du problème des paquets NodeJS, pas PHP (-; – Neodan

+0

@Neodan Oui c'est le problème du paquet NodeJS, comment puis-je le résoudre? – Aamir

+0

n'oubliez pas de marquer une réponse ou d'ajouter votre réponse, si la bonne réponse n'a pas été fournie. En d'autres termes, cette question sera inutile à l'avenir. – Neodan

Répondre

1

On dirait que vous ne pouvez pas utiliser de liens symboliques.

Vous avez quelques options:

  • Essayez d'ajouter --no-bin-links drapeau à npm install commandes ou régler dans une configuration globale par défaut (npm config set bin-links false).
  • Si vous exécutez Vagrant sur Windows, essayez d'exécuter vagrant up en tant qu'administrateur.

Si vous ne voulez pas exécuter VirtualBox en tant qu'administrateur, vous pouvez autoriser la création de liens symboliques pour tous les utilisateurs:

  • Ouvrez l'éditeur de stratégie de groupe (gpedit.msc)
  • Modifier la politique Create symbolic links à: Configuration de l'ordinateur → Paramètres Windows → Paramètres de sécurité → Local Stratégies → Affectation des droits utilisateur → Créer des liens symboliques
+0

J'ai ajouté l'indicateur --no-bin-links à la commande d'installation de npm, Maintenant l'erreur longue n'est pas montrée mais son montrant cette erreur http://mysticpaste.com/3OP1NJG73p – Aamir

+0

On dirait que le problème est provoqué par trop d'appel récursif à l'intérieur du script. Essayez d'y jeter un coup d'œil: github.com/npm/npm/issues/9953 – Neodan