Heim  >  Fragen und Antworten  >  Hauptteil

Beim Ausführen von npm install nach dem Erstellen eines VueJS-Projekts tritt ein Fehler auf

Ich habe gerade VueJS installiert und versucht, ein Projekt zu erstellen. Ich habe die Installations- und Kurzanleitung „VueJS Getting Started“ befolgt.

> npm init vue@latest

> cd(这里是我的项目名称)

> npm install

Nach der Ausführung von > npm install wird jedoch die folgende Meldung im VSCode-Terminal zurückgegeben:

npm ERR! code ERR_SOCKET_TIMEOUT
npm ERR! errno ERR_SOCKET_TIMEOUT
npm ERR! network Invalid response body while trying to fetch https://registry.npmjs.org/lodash: Socket timeout
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\alscg\AppData\Local\npm-cache\_logs22-04-07T08_54_47_537Z-debug-0.log

Wie kann ich dieses Problem lösen? Mache ich das falsch?

P粉161939752P粉161939752236 Tage vor381

Antworte allen(1)Ich werde antworten

  • P粉985686557

    P粉9856865572024-02-26 10:58:52

    请尝试此链接,它看起来已经得到答复

    npm 错误!尝试获取 https://registry.npmjs.org/react-is 时响应超时(超过 30000 毫秒)

    Antwort
    0
  • StornierenAntwort