How can i make a npm package that can be installed in global

justnode

I want to make a npm package and can be installed as global,but when i publish a package,it can't be used in global,what should i do ?

I clone grunt-cli from github,I just want to test whether it can be installed in global,but i failed. What should i do?

Jeff Sloyer

To install a package as a global package you need to run npm install -g packagename.

On Mac and Linux you need to run sudo npm install -g packagename.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I package the installed files in CMAKE

From Dev

How can I package the installed files in CMAKE

From Dev

How can I update an installed stack package?

From Dev

How can I update npm package on github

From Dev

How can I make this npm project works?

From Dev

How can I check if a package is installed (no superuser privileges)?

From Dev

How can I view last installed package or program?

From Dev

How can I find the version number of an installed package via dpkg?

From Dev

How can I tell whether a package was installed by dpkg or apt?

From Dev

How can I tell whether a package was installed by dpkg or apt?

From Dev

How can I know if a virtual package is "installed" on a Debian system?

From Dev

How can I view last installed package or program?

From Dev

How can I find the version number of an installed package via dpkg?

From Dev

How can I check if a package is installed (no superuser privileges)?

From Dev

How can I list the patches of an installed package in SUSE?

From Dev

How can I run inkscape being installed as a snap package?

From Dev

How can I know which commands were installed with a package?

From Dev

How can I make an Alpine package conflict with another Alpine package?

From Dev

How can I make an Alpine package conflict with another Alpine package?

From Java

How can I reference package version in npm script?

From Java

How can I disable NPM package restore in Visual Studio 2015?

From Dev

How can I install the OracleDB NPM package on a Heroku NodeJS server?

From Dev

How can I make a list of all dataframes that are in my global environment?

From Dev

QT - How can I make this array global for my GUI?

From Dev

How can I make this javascript function not use a global variable?

From Dev

How can i make my .desktop app global?

From Dev

Build a custom NPM package that can be installed in all my projects

From Dev

How to make bin script available for npm package installed locally

From Dev

How can I check which is the installed version of a package if with dpkg -l it says is installed in all architectures?

Related Related

  1. 1

    How can I package the installed files in CMAKE

  2. 2

    How can I package the installed files in CMAKE

  3. 3

    How can I update an installed stack package?

  4. 4

    How can I update npm package on github

  5. 5

    How can I make this npm project works?

  6. 6

    How can I check if a package is installed (no superuser privileges)?

  7. 7

    How can I view last installed package or program?

  8. 8

    How can I find the version number of an installed package via dpkg?

  9. 9

    How can I tell whether a package was installed by dpkg or apt?

  10. 10

    How can I tell whether a package was installed by dpkg or apt?

  11. 11

    How can I know if a virtual package is "installed" on a Debian system?

  12. 12

    How can I view last installed package or program?

  13. 13

    How can I find the version number of an installed package via dpkg?

  14. 14

    How can I check if a package is installed (no superuser privileges)?

  15. 15

    How can I list the patches of an installed package in SUSE?

  16. 16

    How can I run inkscape being installed as a snap package?

  17. 17

    How can I know which commands were installed with a package?

  18. 18

    How can I make an Alpine package conflict with another Alpine package?

  19. 19

    How can I make an Alpine package conflict with another Alpine package?

  20. 20

    How can I reference package version in npm script?

  21. 21

    How can I disable NPM package restore in Visual Studio 2015?

  22. 22

    How can I install the OracleDB NPM package on a Heroku NodeJS server?

  23. 23

    How can I make a list of all dataframes that are in my global environment?

  24. 24

    QT - How can I make this array global for my GUI?

  25. 25

    How can I make this javascript function not use a global variable?

  26. 26

    How can i make my .desktop app global?

  27. 27

    Build a custom NPM package that can be installed in all my projects

  28. 28

    How to make bin script available for npm package installed locally

  29. 29

    How can I check which is the installed version of a package if with dpkg -l it says is installed in all architectures?

HotTag

Archive