IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Angular Discussion :

Références manquantes sur un projet Angular


Sujet :

Angular

  1. #1
    Membre chevronné
    Profil pro
    Développeur Web
    Inscrit en
    Février 2008
    Messages
    2 134
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Février 2008
    Messages : 2 134
    Points : 2 241
    Points
    2 241
    Par défaut Références manquantes sur un projet Angular
    Bonjour tout le monde,

    Je cherche à exécuter un projet Angular, et là-dedans je vois qu'un certain nombre de références manquent.

    Là en ce moment, pour installer @angular/core/src/core, m'est réclamé node-sass, qui ne réussit pas à s'installer (erreur 404 sur une dépendance, et le projet cible Python 2, plus disponible.

    Est-ce que quelqu'un y arrive mieux ?

  2. #2
    Membre éprouvé
    Homme Profil pro
    Développeur Web
    Inscrit en
    Janvier 2019
    Messages
    707
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Janvier 2019
    Messages : 707
    Points : 1 030
    Points
    1 030

  3. #3
    Membre chevronné
    Profil pro
    Développeur Web
    Inscrit en
    Février 2008
    Messages
    2 134
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Février 2008
    Messages : 2 134
    Points : 2 241
    Points
    2 241
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    D:\Projects Visual Studio\Web\WeatherProject II 001\GlobalWeather\GlobalWeather\WeatherClient
    17:00:53>npm install node-sass
    npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
     
    > node-sass@4.10.0 install D:\Projects Visual Studio\Web\WeatherProject II 001\GlobalWeather\GlobalWeather\WeatherClient\node_modules\@angular-devkit\build-angular\node_modules\node-sass
    > node scripts/install.js
     
    Downloading binary from https://npm.taobao.org/mirrors/node-sass/v4.10.0/win32-x64-83_binding.node
    Cannot download "https://npm.taobao.org/mirrors/node-sass/v4.10.0/win32-x64-83_binding.node":
     
    HTTP error 404 Not Found
     
    Hint: If github.com is not accessible in your location
          try setting a proxy via HTTP_PROXY, e.g.
     
          export HTTP_PROXY=http://example.com:1234
     
    or configure npm proxy via
     
          npm config set proxy http://example.com:8080
     
    > node-sass@4.14.1 install D:\Projects Visual Studio\Web\WeatherProject II 001\GlobalWeather\GlobalWeather\WeatherClient\node_modules\node-sass
    > node scripts/install.js
     
    Cached binary found at C:\Users\admin\AppData\Roaming\npm-cache\node-sass\4.14.1\win32-x64-83_binding.node
     
    > node-sass@4.10.0 postinstall D:\Projects Visual Studio\Web\WeatherProject II 001\GlobalWeather\GlobalWeather\WeatherClient\node_modules\@angular-devkit\build-angular\node_modules\node-sass
    > node scripts/build.js
     
    Building: C:\Program Files\nodejs\node.exe D:\Projects Visual Studio\Web\WeatherProject II 001\GlobalWeather\GlobalWeather\WeatherClient\node_modules\@angular-devkit\build-angular\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
    gyp info it worked if it ends with ok
    gyp verb cli [
    gyp verb cli   'C:\\Program Files\\nodejs\\node.exe',
    gyp verb cli   'D:\\Projects Visual Studio\\Web\\WeatherProject II 001\\GlobalWeather\\GlobalWeather\\WeatherClient\\node_modules\\@angular-devkit\\build-angular\\node_modules\\node-gyp\\bin\\node-gyp.js',
    gyp verb cli   'rebuild',
    gyp verb cli   '--verbose',
    gyp verb cli   '--libsass_ext=',
    gyp verb cli   '--libsass_cflags=',
    gyp verb cli   '--libsass_ldflags=',
    gyp verb cli   '--libsass_library='
    gyp verb cli ]
    gyp info using node-gyp@3.8.0
    gyp info using node@14.16.0 | win32 | x64
    gyp verb command rebuild []
    gyp verb command clean []
    gyp verb clean removing "build" directory
    gyp verb command configure []
    gyp verb download using dist-url https://npm.taobao.org/dist
    gyp verb check python checking for Python executable "python2" in the PATH
    gyp verb `which` failed Error: not found: python2
    gyp verb `which` failed     at getNotFoundError (D:\Projects Visual Studio\Web\WeatherProject II 001\GlobalWeather\GlobalWeather\WeatherClient\node_modules\@angular-devkit\build-angular\node_modules\which\which.js:13:12)
    gyp verb `which` failed     at F (D:\Projects Visual Studio\Web\WeatherProject II 001\GlobalWeather\GlobalWeather\WeatherClient\node_modules\@angular-devkit\build-angular\node_modules\which\which.js:68:19)
    gyp verb `which` failed     at E (D:\Projects Visual Studio\Web\WeatherProject II 001\GlobalWeather\GlobalWeather\WeatherClient\node_modules\@angular-devkit\build-angular\node_modules\which\which.js:80:29)
    gyp verb `which` failed     at D:\Projects Visual Studio\Web\WeatherProject II 001\GlobalWeather\GlobalWeather\WeatherClient\node_modules\@angular-devkit\build-angular\node_modules\which\which.js:89:16
    gyp verb `which` failed     at D:\Projects Visual Studio\Web\WeatherProject II 001\GlobalWeather\GlobalWeather\WeatherClient\node_modules\isexe\index.js:42:5
    gyp verb `which` failed     at D:\Projects Visual Studio\Web\WeatherProject II 001\GlobalWeather\GlobalWeather\WeatherClient\node_modules\isexe\windows.js:36:5
    gyp verb `which` failed     at FSReqCallback.oncomplete (fs.js:183:21)
    gyp verb `which` failed  python2 Error: not found: python2
    gyp verb `which` failed     at getNotFoundError (D:\Projects Visual Studio\Web\WeatherProject II 001\GlobalWeather\GlobalWeather\WeatherClient\node_modules\@angular-devkit\build-angular\node_modules\which\which.js:13:12)
    gyp verb `which` failed     at F (D:\Projects Visual Studio\Web\WeatherProject II 001\GlobalWeather\GlobalWeather\WeatherClient\node_modules\@angular-devkit\build-angular\node_modules\which\which.js:68:19)
    gyp verb `which` failed     at E (D:\Projects Visual Studio\Web\WeatherProject II 001\GlobalWeather\GlobalWeather\WeatherClient\node_modules\@angular-devkit\build-angular\node_modules\which\which.js:80:29)
    gyp verb `which` failed     at D:\Projects Visual Studio\Web\WeatherProject II 001\GlobalWeather\GlobalWeather\WeatherClient\node_modules\@angular-devkit\build-angular\node_modules\which\which.js:89:16
    gyp verb `which` failed     at D:\Projects Visual Studio\Web\WeatherProject II 001\GlobalWeather\GlobalWeather\WeatherClient\node_modules\isexe\index.js:42:5
    gyp verb `which` failed     at D:\Projects Visual Studio\Web\WeatherProject II 001\GlobalWeather\GlobalWeather\WeatherClient\node_modules\isexe\windows.js:36:5
    gyp verb `which` failed     at FSReqCallback.oncomplete (fs.js:183:21) {
    gyp verb `which` failed   code: 'ENOENT'
    gyp verb `which` failed }
    gyp verb check python checking for Python executable "python" in the PATH
    gyp verb `which` succeeded python C:\Python39\python.EXE
    gyp ERR! configure error
    gyp ERR! stack Error: Command failed: C:\Python39\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
    gyp ERR! stack   File "<string>", line 1
    gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
    gyp ERR! stack                       ^
    gyp ERR! stack SyntaxError: invalid syntax
    gyp ERR! stack
    gyp ERR! stack     at ChildProcess.exithandler (child_process.js:308:12)
    gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
    gyp ERR! stack     at maybeClose (internal/child_process.js:1048:16)
    gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
    gyp ERR! System Windows_NT 10.0.19043
    gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "D:\\Projects Visual Studio\\Web\\WeatherProject II 001\\GlobalWeather\\GlobalWeather\\WeatherClient\\node_modules\\@angular-devkit\\build-angular\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
    gyp ERR! cwd D:\Projects Visual Studio\Web\WeatherProject II 001\GlobalWeather\GlobalWeather\WeatherClient\node_modules\@angular-devkit\build-angular\node_modules\node-sass
    gyp ERR! node -v v14.16.0
    gyp ERR! node-gyp -v v3.8.0
    gyp ERR! not ok
    Build failed with error code: 1
     
    > node-sass@4.14.1 postinstall D:\Projects Visual Studio\Web\WeatherProject II 001\GlobalWeather\GlobalWeather\WeatherClient\node_modules\node-sass
    > node scripts/build.js
     
    Binary found at D:\Projects Visual Studio\Web\WeatherProject II 001\GlobalWeather\GlobalWeather\WeatherClient\node_modules\node-sass\vendor\win32-x64-83\binding.node
    Testing binary
    Binary is fine
    npm notice created a lockfile as package-lock.json. You should commit this file.
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-sass@4.10.0 (node_modules\@angular-devkit\build-angular\node_modules\node-sass):
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-sass@4.10.0 postinstall: `node scripts/build.js`
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
     
    + node-sass@4.14.1
    added 1 package from 1 contributor, removed 1 package and updated 24 packages in 31.378s
     
    19 packages are looking for funding
      run `npm fund` for details
    Une des deux erreurs est corrigée, le dépôt de win32-x64-83_binding.node est réparé.
    Euh, correctif : je ne sais plus où j'ai vu ça, on voit bien toujours une erreur 404. Peut-être que j'ai vu "downloading ..." et que ça me prenait tellement le chou que je me suis enthousiasmé tout de suite, trop vite.


    Il reste l'autre erreur,
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
    Il semble que ceci soit une syntaxe de Python 2. Voir au-dessus la ligne 50 :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    gyp verb `which` failed Error: not found: python2
    or en ligne je ne trouve plus que Python 3.

    https://mail.python.org/archives/lis...BGQIZHAVRHCV2/

    Donc il faut soit trouver Python 2 et l'installer, soit corriger node-sass pour qu'il fasse appel à Python 3. La seconde possibilité semble plus rationnelle, mais pour ça je ne peux que prendre mon mal en patience, pas vrai ?
    Pratique, ça, quand on est en équilibre sur une patte à attendre pour envoyer sa candidature ...

  4. #4
    Membre éprouvé
    Homme Profil pro
    Développeur Web
    Inscrit en
    Janvier 2019
    Messages
    707
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Janvier 2019
    Messages : 707
    Points : 1 030
    Points
    1 030

Discussions similaires

  1. [AC-2013] Référence manquante sur [AC-2010]
    Par keishiro973 dans le forum VBA Access
    Réponses: 5
    Dernier message: 28/04/2014, 12h08
  2. [XL-2003] Référence marquée "manquante" sur un poste: résolution en macro?
    Par garheb dans le forum Macros et VBA Excel
    Réponses: 8
    Dernier message: 18/07/2011, 14h10
  3. [AC-2010] Référence manquante sur runtime 64 bits ?
    Par Depite dans le forum Runtime
    Réponses: 1
    Dernier message: 26/05/2011, 11h11
  4. [AC-2000] Référence manquante sur certains postes
    Par moustika dans le forum Access
    Réponses: 5
    Dernier message: 08/04/2011, 21h46
  5. Problème de référence d'Entity sur 2 projets EJB
    Par OButterlin dans le forum JPA
    Réponses: 2
    Dernier message: 29/04/2008, 20h48

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo