Zeinab Deheshti
5 سال پیش توسط Zeinab Deheshti مطرح شد
2 پاسخ

نصب npm در ابونتو

با سلام
npm رو داشتم حذف کردم و کجددا میخوام نصبش کنم اینکارو انجام دادم ورژنش رو هم چک میکنم هست اما زمانی ک npm ls میزنم نتیجه این میشه: البته نتیجه خیلی طولانی تر از این صحبت هاست. ممنون میشم راهنماییم کنید

├─┬ UNMET DEPENDENCY @babel/plugin-transform-computed-properties@7.7.4  
│ │ │ └── UNMET DEPENDENCY @babel/helper-plugin-utils@7.0.0  
│ │ ├── UNMET DEPENDENCY @babel/plugin-transform-destructuring@7.7.4  
│ │ ├─┬ UNMET DEPENDENCY @babel/plugin-transform-dotall-regex@7.7.7  
│ │ │ ├── UNMET DEPENDENCY @babel/helper-create-regexp-features-plugin@7.7.4  
│ │ │ └── UNMET DEPENDENCY @babel/helper-plugin-utils@7.0.0  
│ │ ├─┬ UNMET DEPENDENCY @babel/plugin-transform-duplicate-keys@7.7.4  
│ │ │ └── UNMET DEPENDENCY @babel/helper-plugin-utils@7.0.0  
│ │ ├─┬ UNMET DEPENDENCY @babel/plugin-transform-exponentiation-operator@7.7.4  
│ │ │ ├─┬ UNMET DEPENDENCY @babel/helper-builder-binary-assignment-operator-visitor@7.7.4  
│ │ │ │ ├─┬ UNMET DEPENDENCY @babel/helper-explode-assignable-expression@7.7.4  
│ │ │ │ │ ├── UNMET DEPENDENCY @babel/traverse@7.7.4  
│ │ │ │ │ └── UNMET DEPENDENCY @babel/types@7.7.4  
│ │ │ │ └── UNMET DEPENDENCY @babel/types@7.7.4  
│ │ │ └── UNMET DEPENDENCY @babel/helper-plugin-utils@7.0.0  
│ │ ├─┬ UNMET DEPENDENCY @babel/plugin-transform-for-of@7.7.4  
│ │ │ └── UNMET DEPENDENCY @babel/helper-plugin-utils@7.0.0  
│ │ ├─┬ UNMET DEPENDENCY @babel/plugin-transform-function-name@7.7.4  
│ │ │ ├── UNMET DEPENDENCY @babel/helper-function-name@7.7.4  
│ │ │ └── UNMET DEPENDENCY @babel/helper-plugin-utils@7.0.0  
│ │ ├─┬ UNMET DEPENDENCY @babel/plugin-transform-literals@7.7.4  
│ │ │ └── UNMET DEPENDENCY @babel/helper-plugin-utils@7.0.0  
│ │ ├─┬ UNMET DEPENDENCY @babel/plugin-transform-member-expression-literals@7.7.4  
│ │ │ └── UNMET DEPENDENCY @babel/helper-plugin-utils@7.0.0  
│ │ ├─┬ UNMET DEPENDENCY @babel/plugin-transform-modules-amd@7.7.5  
│ │ │ ├─┬ UNMET DEPENDENCY @babel/helper-module-transforms@7.7.5  
│ │ │ │ ├── UNMET DEPENDENCY @babel/helper-module-imports@7.7.4  
│ │ │ │ ├── UNMET DEPENDENCY @babel/helper-simple-access@7.7.4  
│ │ │ │ ├── UNMET DEPENDENCY @babel/helper-split-export-declaration@7.7.4  
│ │ │ │ ├── UNMET DEPENDENCY @babel/template@7.7.4  
│ │ │ │ ├── UNMET DEPENDENCY @babel/types@7.7.4  
│ │ │ │ └── UNMET DEPENDENCY lodash@4.17.15  
│ │ │ ├── UNMET DEPENDENCY @babel/helper-plugin-utils@7.0.0  
│ │ │ └── UNMET DEPENDENCY babel-plugin-dynamic-import-node@2.3.0  
│ │ ├─┬ UNMET DEPENDENCY @babel/plugin-transform-modules-commonjs@7.7.5  
│ │ │ ├── UNMET DEPENDENCY @babel/helper-module-transforms@7.7.5  
│ │ │ ├── UNMET DEPENDENCY @babel/helper-plugin-utils@7.0.0  
│ │ │ ├─┬ UNMET DEPENDENCY @babel/helper-simple-access@7.7.4  
│ │ │ │ ├── UNMET DEPENDENCY @babel/template@7.7.4  
│ │ │ │ └── UNMET DEPENDENCY @babel/types@7.7.4  
│ │ │ └── UNMET DEPENDENCY babel-plugin-dynamic-import-node@2.3.0  
│ │ ├─┬ UNMET DEPENDENCY @babel/plugin-transform-modules-systemjs@7.7.4  
│ │ │ ├─┬ UNMET DEPENDENCY @babel/helper-hoist-variables@7.7.4  
│ │ │ │ └── UNMET DEPENDENCY @babel/types@7.7.4  
│ │ │ ├── UNMET DEPENDENCY @babel/helper-plugin-utils@7.0.0  
│ │ │ └── UNMET DEPENDENCY babel-plugin-dynamic-import-node@2.3.0  
│ │ ├─┬ UNMET DEPENDENCY @babel/plugin-transform-modules-umd@7.7.4  
│ │ │ ├── UNMET DEPENDENCY @babel/helper-module-transforms@7.7.5  
│ │ │ └── UNMET DEPENDENCY @babel/helper-plugin-utils@7.0.0  
│ │ ├─┬ UNMET DEPENDENCY @babel/plugin-transform-named-capturing-groups-regex@7.7.4  
│ │ │ └── UNMET DEPENDENCY @babel/helper-create-regexp-features-plugin@7.7.4  
│ │ ├─┬ UNMET DEPENDENCY @babel/plugin-transform-new-target@7.7.4  
│ │ │ └── UNMET DEPENDENCY @babel/helper-plugin-utils@7.0.0  
│ │ ├─┬ UNMET DEPENDENCY @babel/plugin-transform-object-super@7.7.4  
│ │ │ ├── UNMET DEPENDENCY @babel/helper-plugin-utils@7.0.0  
│ │ │ └── UNMET DEPENDENCY @babel/helper-replace-supers@7.7.4  
│ │ ├─┬ UNMET DEPENDENCY @babel/plugin-transform-parameters@7.7.7  
│ │ │ ├─┬ UNMET DEPENDENCY @babel/helper-call-delegate@7.7.4  
│ │ │ │ ├── UNMET DEPENDENCY @babel/helper-hoist-variables@7.7.4  
│ │ │ │ ├── UNMET DEPENDENCY @babel/traverse@7.7.4  
│ │ │ │ └── UNMET DEPENDENCY @babel/types@7.7.4  
│ │ │ ├── UNMET DEPENDENCY @babel/helper-get-function-arity@7.7.4  
│ │ │ └── UNMET DEPENDENCY @babel/helper-plugin-utils@7.0.0  
│ │ ├─┬ UNMET DEPENDENCY @babel/plugin-transform-property-literals@7.7.4  
│ │ │ └── UNMET DEPENDENCY @babel/helper-plugin-utils@7.0.0  
│ │ ├─┬ UNMET DEPENDENCY @babel/plugin-transform-regenerator@7.7.5  
│ │ │ └─┬ UNMET DEPENDENCY regenerator-transform@0.14.1  
│ │ │ └── UNMET DEPENDENCY private@0.1.8  
│ │ ├─┬ UNMET DEPENDENCY @babel/plugin-transform-reserved-words@7.7.4  
│ │ │ └─UNMET DEPENDENCY @babel/helper-plugin-ut

ثبت پرسش جدید
حسام موسوی
تخصص : طراح و برنامه نویس
@hesammousavi 5 سال پیش مطرح شد
0

این دستور رو داخل دایرکتوری پروژه میزنید ؟ که node_modules هم هست ؟


داود خانی
تخصص : برنامه نویس لاراول و متخصص سئو...
@davoodkhany 5 سال پیش مطرح شد
0

سلام پاکش کنید از دوباره تست کنید این مراحل رو :

Enable the NodeSource repository by running the following curl as a user with sudo privileges:
    curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
The command will add the NodeSource signing key to your system, create an apt sources repository file, install all necessary packages and refresh the apt cache.

If you need to install another version, for example 12.x, just change setup_10.x with setup_12.x

Once the NodeSource repository is enabled, install Node.js and npm by typing:

    sudo apt install nodejs
The nodejs package contains both the node and npm binaries.

Verify that the Node.js and npm were successfully installed by printing their versions:
    node --version
    v10.16.3
    npm --version

    6.9.0

برای ارسال پاسخ لازم است وارد شده یا ثبت‌نام کنید

ورود یا ثبت‌نام