workshopper / how-to-npm

A module to teach you how to module.
https://www.npmjs.com/package/how-to-npm
ISC License
1.09k stars 212 forks source link

Very basic NPM newbie question #120

Closed bythckr closed 7 years ago

bythckr commented 7 years ago

As a npm newbie, I have a question as to where do I run npm i -g how-to-npm.

I am using a mac. Do I run it in ~ as it is -g(global)? Or can I run it in a sub folder like /Documents/Code/js/?

Shivamnema commented 7 years ago

If you have installed your NPM properly with proper permissions. Then you can run this command from any where and it will install "how-to-npm" globally.

watilde commented 7 years ago

You can check where npm install modules globally via npm config. Also what @Shivamnema said! https://docs.npmjs.com/misc/config#global

Closing as resolved. Thanks!