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

NodeJS Discussion :

Installation d'expo: npm warn deprecated inflight@1.0.6


Sujet :

NodeJS

  1. #1
    Débutant  
    Profil pro
    Inscrit en
    Mai 2005
    Messages
    3 103
    Détails du profil
    Informations personnelles :
    Localisation : Suisse

    Informations forums :
    Inscription : Mai 2005
    Messages : 3 103
    Points : 954
    Points
    954
    Par défaut Installation d'expo: npm warn deprecated inflight@1.0.6
    Bonjour,

    Je débute avec nodejs et j’aimerais l’installer avec expo sur mon Mac que je viens de réinstaller. Il faut savoir que j'ai un vieux Macbook pro avec une puce intel et MacOS Ventura 13.7

    J'ai créé un dossier /Ghithub/ReactN/
    Depuis ce dossier, j'ai installé nodejs

    Puis j'ai voulu installer expo. j'ai lancer la commande
    et j'ai reçu une invitation pour installer expo52. Super, je l'accepte

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    Need to install the following packages:
    expo@52.0.11
    Ok to proceed? (y) y
    Le problème est que j'ai reçu plusieurs mauvais messages
    pm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
    npm warn deprecated @babel/plugin-proposal-nullish-coalescing-operator@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.
    npm warn deprecated @babel/plugin-proposal-class-properties@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
    npm warn deprecated @babel/plugin-proposal-optional-chaining@7.21.0: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
    npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
    npm warn deprecated @xmldom/xmldom@0.7.13: this version is no longer supported, please update to at least 0.8.*
    npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
    npm warn deprecated rimraf@2.6.3: Rimraf versions prior to v4 are no longer supported
    npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
    npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
    npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
    npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
    ConfigError: The expected package.json path: /Users/pierrot/Documents/GitHub/ReactN/package.json does not exist
    pierrot:~/Documents/GitHub/ReactN$ npx expo -h

    Usage
    $ npx expo <command>

    Commands
    start, export
    run:ios, run:android, prebuild
    install, customize, config, serve
    login, logout, whoami, register

    Options
    --version, -v Version number
    --help, -h Usage info

    For more info run a command with the --help flag
    $ npx expo start --help

    pierrot:~/Documents/GitHub/ReactN$ npx create-expo-app@latest
    Need to install the following packages:
    create-expo-app@3.1.1
    Ok to proceed? (y) y

    Creating an Expo project using the default template.

    To choose from all available templates pass in the --template arg:
    $ npx create-expo-app --template

    To choose from all available examples pass in the --example arg:
    $ npx create-expo-app --example

    ✔ What is your app named? … dashboard
    ✔ Downloaded and extracted project files.
    > npm install
    npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
    npm warn deprecated @babel/plugin-proposal-nullish-coalescing-operator@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.
    npm warn deprecated @babel/plugin-proposal-class-properties@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
    npm warn deprecated rimraf@2.6.3: Rimraf versions prior to v4 are no longer supported
    npm warn deprecated @babel/plugin-proposal-optional-chaining@7.21.0: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
    npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
    npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
    npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
    npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
    npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
    npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
    npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
    npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
    npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
    npm warn deprecated @xmldom/xmldom@0.7.13: this version is no longer supported, please update to at least 0.8.*
    npm warn deprecated domexception@4.0.0: Use your platform's native DOMException instead
    npm warn deprecated abab@2.0.6: Use your platform's native atob() and btoa() methods instead

    added 1179 packages, and audited 1180 packages in 1m

    104 packages are looking for funding
    run `npm fund` for details

    5 low severity vulnerabilities

    To address all issues (including breaking changes), run:
    npm audit fix --force

    Run `npm audit` for details.

    ✅ Your project is ready!
    J'aimerais savoir si ceci est dû au fait que j'ai un ancien MacOS (Ventura). Je ne peux pas le mettre à jour car je n'ai pas la puce M4.

    Si non, j'ai installé nvm et nodejs ainsi

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
    et node

    Comment j'aurais dû installer expo? Ai-je l'ai fait improprement?

    Je vous remercie pour vos lumières!


    Note: Voici le log de mes tentatives, si cela peut aider

    (J'hésite à acheter un nouveau Macbook pro demain, vu que le mien à 5 ans, surtout si les dernières versions de nodejs et expo fonctionnent mieux sur MacOS seqoia)

    pierrot:~/Documents/GitHub/ReactN$ npx expo
    Need to install the following packages:
    expo@52.0.11
    Ok to proceed? (y) n

    npm error canceled
    npm notice
    npm notice New patch version of npm available! 10.9.0 -> 10.9.1
    npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.9.1
    npm notice To update run: npm install -g npm@10.9.1
    npm notice
    npm error A complete log of this run can be found in: /Users/pierrot/.npm/_logs/2024-11-28T22_22_59_911Z-debug-0.log
    pierrot:~/Documents/GitHub/ReactN$ npx ?
    npm error code EINVALIDTAGNAME
    npm error Invalid tag name "?" of package "?": Tags may not have any characters that encodeURIComponent encodes.
    npm error A complete log of this run can be found in: /Users/pierrot/.npm/_logs/2024-11-28T22_25_14_917Z-debug-0.log
    pierrot:~/Documents/GitHub/ReactN$ npx help
    npm error could not determine executable to run
    npm error A complete log of this run can be found in: /Users/pierrot/.npm/_logs/2024-11-28T22_25_20_208Z-debug-0.log
    pierrot:~/Documents/GitHub/ReactN$ npx

    Entering npm script environment at location:
    /Users/pierrot/Documents/GitHub/ReactN
    Type 'exit' or ^D when finished

    sh-3.2$ exit
    exit
    pierrot:~/Documents/GitHub/ReactN$ npx expo
    Need to install the following packages:
    expo@52.0.11
    Ok to proceed? (y) n

    npm error canceled
    npm error A complete log of this run can be found in: /Users/pierrot/.npm/_logs/2024-11-28T22_28_52_812Z-debug-0.log
    pierrot:~/Documents/GitHub/ReactN$ npx expo -h
    Need to install the following packages:
    expo@52.0.11
    Ok to proceed? (y) n

    npm error canceled
    npm error A complete log of this run can be found in: /Users/pierrot/.npm/_logs/2024-11-28T22_30_29_898Z-debug-0.log
    pierrot:~/Documents/GitHub/ReactN$ npx add expo
    npm error could not determine executable to run
    npm error A complete log of this run can be found in: /Users/pierrot/.npm/_logs/2024-11-28T22_31_13_583Z-debug-0.log
    pierrot:~/Documents/GitHub/ReactN$ npx install expo
    npm error could not determine executable to run
    npm error A complete log of this run can be found in: /Users/pierrot/.npm/_logs/2024-11-28T22_31_24_196Z-debug-0.log





    pierrot:~/Documents/GitHub/ReactN$ npx expo
    Need to install the following packages:
    expo@52.0.11
    Ok to proceed? (y) y

    npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
    npm warn deprecated @babel/plugin-proposal-nullish-coalescing-operator@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.
    npm warn deprecated @babel/plugin-proposal-class-properties@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
    npm warn deprecated @babel/plugin-proposal-optional-chaining@7.21.0: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
    npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
    npm warn deprecated @xmldom/xmldom@0.7.13: this version is no longer supported, please update to at least 0.8.*
    npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
    npm warn deprecated rimraf@2.6.3: Rimraf versions prior to v4 are no longer supported
    npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
    npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
    npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
    npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
    ConfigError: The expected package.json path: /Users/pierrot/Documents/GitHub/ReactN/package.json does not exist
    pierrot:~/Documents/GitHub/ReactN$ npx expo -h

    Usage
    $ npx expo <command>

    Commands
    start, export
    run:ios, run:android, prebuild
    install, customize, config, serve
    login, logout, whoami, register

    Options
    --version, -v Version number
    --help, -h Usage info

    For more info run a command with the --help flag
    $ npx expo start --help

    pierrot:~/Documents/GitHub/ReactN$ npx create-expo-app@latest
    Need to install the following packages:
    create-expo-app@3.1.1
    Ok to proceed? (y) y

    Creating an Expo project using the default template.

    To choose from all available templates pass in the --template arg:
    $ npx create-expo-app --template

    To choose from all available examples pass in the --example arg:
    $ npx create-expo-app --example

    ✔ What is your app named? … dashboard
    ✔ Downloaded and extracted project files.
    > npm install
    npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
    npm warn deprecated @babel/plugin-proposal-nullish-coalescing-operator@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.
    npm warn deprecated @babel/plugin-proposal-class-properties@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
    npm warn deprecated rimraf@2.6.3: Rimraf versions prior to v4 are no longer supported
    npm warn deprecated @babel/plugin-proposal-optional-chaining@7.21.0: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
    npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
    npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
    npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
    npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
    npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
    npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
    npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
    npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
    npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
    npm warn deprecated @xmldom/xmldom@0.7.13: this version is no longer supported, please update to at least 0.8.*
    npm warn deprecated domexception@4.0.0: Use your platform's native DOMException instead
    npm warn deprecated abab@2.0.6: Use your platform's native atob() and btoa() methods instead

    added 1179 packages, and audited 1180 packages in 1m

    104 packages are looking for funding
    run `npm fund` for details

    5 low severity vulnerabilities

    To address all issues (including breaking changes), run:
    npm audit fix --force

    Run `npm audit` for details.

    ✅ Your project is ready!
    Il ne suffit pas de tout savoir. Vouloir et persévérer, c'est déjà presque tout!

  2. #2
    Membre éclairé
    Homme Profil pro
    Autre
    Inscrit en
    Juillet 2021
    Messages
    382
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Loire Atlantique (Pays de la Loire)

    Informations professionnelles :
    Activité : Autre

    Informations forums :
    Inscription : Juillet 2021
    Messages : 382
    Points : 765
    Points
    765
    Par défaut
    The expected package.json path: /Users/pierrot/Documents/GitHub/ReactN/package.json does not exist
    Ton projet de contient pas de fichier package.json. Pour un projet vierge, tu peux utiliser la commande npm init pour générer ce fichier
    https://nodesource.com/blog/the-basi...arted-with-npm

    Pour créer un projet avec Expo, tu sembles avoir bien utilisé la bonne commande npx create-expo-app@latest
    https://docs.expo.dev/tutorial/create-your-first-app/

Discussions similaires

  1. Réponses: 1
    Dernier message: 17/11/2019, 14h56
  2. Probleme installation cordova via npm (EACCESS)
    Par JohnBegood dans le forum Mac OS X
    Réponses: 0
    Dernier message: 22/10/2013, 15h10
  3. [Eclipse][Warning] Deprecated
    Par Hikage dans le forum Eclipse Java
    Réponses: 4
    Dernier message: 04/11/2010, 12h24
  4. Réponses: 3
    Dernier message: 04/05/2010, 09h58
  5. Réponses: 2
    Dernier message: 08/12/2009, 13h57

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