Cli: [BUG] EMISSINGARG على تثبيت npm

تم إنشاؤها على ١٣ ديسمبر ٢٠١٩  ·  4تعليقات  ·  مصدر: npm/cli

ماذا / لماذا

خطأ في تثبيت npm

متى

  • على كل تثبيت npm

أين

  • تم تثبيت npm عبر sudo apt install npm

كيف

السلوك الحالي

  • خطأ سيئ كبير

خطوات التكاثر

  • تثبيت npm على تطبيق Phoenix افتراضي

سلوك متوقع

  • تثبيت ناجح

منظمة الصحة العالمية

  • غير متوفر

المراجع

  • غير متوفر
cohen@xps-13-7390:~/code/cookbook/assets$ npm install
npm WARN deprecated [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated [email protected]: 🙌  Thanks for using Babel: we recommend using babel-preset-env now: please read https://babeljs.io/env to update!
npm WARN deprecated [email protected]: Package no longer supported. Contact [email protected] for more info.
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm ERR! Linux 4.15.0-1065-oem
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v8.10.0
npm ERR! npm  v3.5.2
npm ERR! code EMISSINGARG

npm ERR! typeerror Error: Missing required argument #1
npm ERR! typeerror     at andLogAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:31:3)
npm ERR! typeerror     at fetchPackageMetadata (/usr/share/npm/lib/fetch-package-metadata.js:51:22)
npm ERR! typeerror     at resolveWithNewModule (/usr/share/npm/lib/install/deps.js:456:12)
npm ERR! typeerror     at /usr/share/npm/lib/install/deps.js:457:7
npm ERR! typeerror     at /usr/share/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror     at /usr/share/npm/lib/fetch-package-metadata.js:37:12
npm ERR! typeerror     at addRequestedAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:82:5)
npm ERR! typeerror     at returnAndAddMetadata (/usr/share/npm/lib/fetch-package-metadata.js:117:7)
npm ERR! typeerror     at pickVersionFromRegistryDocument (/usr/share/npm/lib/fetch-package-metadata.js:134:20)
npm ERR! typeerror     at /usr/share/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror This is an error with npm itself. Please report this error at:
npm ERR! typeerror     <http://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /home/cohen/code/cookbook/assets/npm-debug.log

محتويات npm-debug.log

Bug

التعليق الأكثر فائدة

شكرا ماريانيلامين. حلك يعمل معي

في مثيل Ubuntu الخاص بي ، قمت بتشغيل هذين الأمرين:
# npm تثبيت -gn
# n مستقرة

ال 4 كومينتر

لدي نفس المشكلة

واجهنا هذا أيضًا في تطبيق Phoenix الخاص بنا. أدت ترقية webpack-cli من 2.xx إلى 3.xx في package.json ضمن الأصول إلى حل المشكلة بالنسبة لنا. كانوا يستخدمون

  • نظام التشغيل Ubuntu 18.04 LTS
  • العقدة v8.10.0
  • npm v3.5.2
  • فينيكس 1.4.10

واجهت نفس المشكلة ، باستخدام Ubuntu 18.04 LTS و Node v8.10.0.

لقد قمت بترقية إصدار العقدة ويعمل تثبيت npm على ما يرام.

شكرا ماريانيلامين. حلك يعمل معي

في مثيل Ubuntu الخاص بي ، قمت بتشغيل هذين الأمرين:
# npm تثبيت -gn
# n مستقرة

هل كانت هذه الصفحة مفيدة؟
0 / 5 - 0 التقييمات