Bug 21070 - npm is installed, but not available/inaccessible/does not exist on disk
Summary: npm is installed, but not available/inaccessible/does not exist on disk
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-11 12:40 CEST by Stig-Ørjan Smelror
Modified: 2017-06-11 15:36 CEST (History)
0 users

See Also:
Source RPM: npm-3.10.10-2.mga6
CVE:
Status comment:


Attachments

Description Stig-Ørjan Smelror 2017-06-11 12:40:35 CEST
$ sudo urpmi npm-3.10.10-2.mga6

installing npm-3.10.10-2.mga6.x86_64.rpm from /share/pub/linux/Mageia/cauldron/x86_64/media/core/release
Preparing...                     #################################################################
      1/1: npm                   #################################################################

$ rpm -qls npm-3.10.10-2.mga6
normal        /usr/bin/npm
$ rehash
$ /usr/bin/npm             
zsh: no such file or directory: /usr/bin/npm
Comment 1 Stig-Ørjan Smelror 2017-06-11 15:36:37 CEST
My fault.

I tried to install NPM@5 after an email from npmjs.org and it lead to a defunct directory resulting in npm being unavailable.

Fixed it by installing npm 5.0.3 manually and moving the npm directory I downloaded to /usr/lib/node_modules/

Status: NEW => RESOLVED
Resolution: (none) => INVALID


Note You need to log in before you can comment on or make changes to this bug.