S
S
Sergey Nikolaev2015-05-21 09:47:45
Node.js
Sergey Nikolaev, 2015-05-21 09:47:45

Why doesn't NPM install globally?

Installed NodeJS. With it, npm got up, both work globally from the console.
But when trying to install modules globally
, "npm install -g bower"
Puts everything in the user's folder as it should, but the module is not globally available, what could be the problem?
Cmd from under admin
Win 8.1

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey, 2015-05-21
@Devastor

I have a directory with global modules under win 7:
It needs to be added to the PATH variable.
Under win 8.1, most likely the path is the same.

D
Dmitry, 2015-05-21
@kasus

You need to add the directory with the node binaries to PATH

L
Lenar Fattakhov, 2015-05-21
@fr_end

I had a similar problem, it turned out that the Path variable was referring to another user's folder. I removed everything superfluous from there and reinstalled the node, during installation everything is registered there by itself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question