المعرفة:: JavaScript الحالة::مؤرشفة المراجع:: The Complete JavaScript Course 2022 From Zero to Expert
npm init
: initializing a new project. (-y
can be used to use default values directly and then editpackage.json
manually)npm install package
: install a package. Ornpm i package
. A version can be specified using@x.y.z
after package name.npm install
: install all packages frompackage.json
. Ornpm i
npm install package --save-dev
ornpm install package -D
: install a package as development dependency.npm run X
: run a defined command in npm scripts section ofpackage.json
.