0
0
Node.jsframework~10 mins

npx for running packages in Node.js - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to run a package using npx.

Node.js
npx [1]
Drag options to blanks, or click blank then click option'
Ainstall
Bnpm
Cnode
Dcreate-react-app
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'install' after npx instead of a package name.
Trying to run 'npm' with npx which is incorrect.
2fill in blank
medium

Complete the command to run a specific version of a package with npx.

Node.js
npx [1]@5.0.0 my-app
Drag options to blanks, or click blank then click option'
Anode
Bnpm
Ccreate-react-app
Dexpress
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'npm' instead of the package name.
Omitting the version number or placing it incorrectly.
3fill in blank
hard

Fix the error in the command to run a package with npx.

Node.js
npx [1] --version
Drag options to blanks, or click blank then click option'
Anpm install
Bcreate-react-app
Cnode
Dnpx
Attempts:
3 left
💡 Hint
Common Mistakes
Including 'npm install' after npx.
Trying to run 'npx' inside npx command.
4fill in blank
hard

Fill both blanks to run a package with arguments using npx.

Node.js
npx [1] [2]
Drag options to blanks, or click blank then click option'
Aeslint
B--fix
Cmyfile.js
Dnode
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'node' instead of the package name.
Putting the filename instead of an argument.
5fill in blank
hard

Fill all three blanks to run a package with a script and an argument using npx.

Node.js
npx [1] [2] [3]
Drag options to blanks, or click blank then click option'
Ajest
B--watch
Ctest-file.js
Deslint
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'eslint' instead of 'jest' for tests.
Mixing up flags and filenames.