How do you find what scripts are defined in a project and can be executed using npm?

Experience Level: Senior
Tags: npm

Answer

There are two ways how you can find scripts that are defined in package.json and that can be executed.

Option 1

Open your command line and run the following command:

  npm run

Option 2

Open a file package.json and find the property scripts. Each property of the object that as assigned to property scripts is a script that can be executed.

Comments

No Comments Yet.
Be the first to tell us what you think.
npm for advanced users
npm for advanced users

Are you learning npm ? Try our test we designed to help you progress faster.

Test yourself

Chat

Oh, the operator is not available. Leave us your comments. We will answer all your questions as soon as possible.

Comments

Anonymous
Καλησπέρα.
Anonymous
the infinteis -3/15 so 1triition / infinet
Anonymous
e
Anonymous
<a href="https://inspirum.pl "
Anonymous
[url]https://inspirum.pl[/url]
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e