Skip to content

Instantly share code, notes, and snippets.

@rogerwschmidt
Last active July 17, 2017 17:37
Show Gist options
  • Select an option

  • Save rogerwschmidt/b8c81bd152a5e4ea9e6d1d912f6226a5 to your computer and use it in GitHub Desktop.

Select an option

Save rogerwschmidt/b8c81bd152a5e4ea9e6d1d912f6226a5 to your computer and use it in GitHub Desktop.

NPM Instructor Notes

Objectives

  • Explain what NPM is.
  • Explian why NPM is useful.
  • Initialize a NPM project.
  • Describe what is stored in the package.json file and in the node_modules folder.
  • Install NPM modules.
  • Uninstall NPM modules.
  • Describe the differences between a dependency and a development depedency.
  • Describe the relationship between node_modules and .gitignore.

What is NPM?

Turn to your neighbor and discuss what NPM is. Be prepared to share your answer with the class.

Why is NPM useful?

Turn to your neighbor and discuss why NPM is useful. Be prepared to share your answer with the class.

How do you initialize a NPM project?

In a slate, write down the command to initialize a NPM project.

What is stored in the package.json file? What is stored in the node_modules folder?

In your notes, write down what is contained in the package.json file and the node_modules folder. Be prepared to share your answer with the class.

How do you install NPM modules?

In a slate, write down the command to install an NPM module named express. What has changed in the package.json file, and in the node_modules folder?

How do you uninstall NPM modules?

In a slate, write down the command to uninstall an NPM module named express. What has changed in the package.json file, and in the node_modules folder?

What is the difference between a dependency and a development dependency?

Turn to your neighbor and discuss the difference between a dependency and a development dependency.

What is the relationship between node_modules and .gitignore?

Turn to your neighbor and discuss why you should add the node_modules folder to .gitignore. Write in your slate how that is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment