NativeScript / NativeScript/nativescript-cli

Self tns validation...

Ouverte
#1,728 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

feature hacktoberfest help wanted
Langage dominant
JavaScript
Étoiles
1.1k
Forks
204
Merge moyen
1 j 9 h
PR mergées (30 j)
8

Description

I've seen this issue occur the last several times I've upgraded the nativescript command on my Macintosh. I haven't seen this on my windows 7 box.

It installs, and gives me the normal list of all the modules it has installed; but it does not run any of the post-install stuff. However, the install is bad, some modules are missing even though it "appears" like everything installed properly (because of the list of all the modules it just installed successfully is long).

Running TNS will work in some cases; but in most cases depending on which module wasn't installed it will fail at that point with random errors.

I am recommending that on install part of the post install step would be to load each npm module that you are depending upon in a try catch and verify they all exist properly. Then set a flag to the current version. On startup of the tns command, see if this flag is set to the current version, if it isn't set then run this check. In this way you can at least tell the end user that the install is bad and to reinstall tns command.

If others are running into this; it is very confusing why it "appears" to have installed but it is broken in random places. I've learned from using tns for a long time that if it doesn't run the post install checks just to do another "npm install -g nativescript" until it actually runs the post install scripts...

Please note I do realize this could be an issue with my Node/Npm version so I'm going to leave this info here in case others run into this. I plan updating both to the latest 5.x release later so we shall see ...
Node v5.11, npm v3.32

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Piste de recherche

L’issue ne mentionne aucun fichier, test ou point d’entrée. Commencez par reproduire l’installation globale sur macOS avec Node v5.11 et npm v3.32, puis vérifiez si la validation post-installation s’exécute et si les modules requis sont chargés ; le travail serait terminé lorsqu’un signal d’échec clair est également fourni si l’installation est incomplète.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
javascript, node.js
Domaine
cli
Type d'issue
Bug
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.