A
A
Anton2016-11-21 19:15:05
Node.js
Anton, 2016-11-21 19:15:05

How to put all packages from package.gson globally?

Did I understand correctly that if an object is added to package.json

"config": {
    "global": true,
    "prefix": "/usr/local/lib"
  }

and node_modules will be in /usr/local/lib will node look for modules there? if it's true, then for some reason it didn't work for me...
I know, the question sounds strange, but the project is launched in docker (via virtualbox), and the host is windows, and if I try to simply `npm install` then I get errors about inability to create symlinks, and if I run npm install --no-bin-links, I get the message "Max callstack exceeded". If you put absolutely all dependencies globally, then both problems will be solved.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question