How do I run a script in JSON?

Thành Đạt

New member
How do I run a script in JSON?
Answer
You can easily run scripts using npm by adding them to the “scripts” field in package. json and run them with
npm run <script-name>
. Run npm run to see available scripts. Binaries of locally install packages are made available in the PATH , so you can run them by name instead of pointing to node_modules/.
 

Tìm kiếm

Back
Top