Blogger Information
Blog 43
fans 4
comment 0
visits 19396
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
node.js安装/npm常用指令
汇享科技
Original
378 people have browsed it

nodejs 下载安装

Linux常用命令

  • 切换指定目录 cd后面跟上指定目录

  • 查看当前文件所在目录 pwd

  • 查看当前目录下所有文件 ls

npm常用命令

  • 查看 npm 版本 npm -v

  • 生成默认配置文件 npm init -y

  • 安装模块包 npm i xxx安装到局部 npm i xxx -g安装到全局 xxx->模块包名

  • 安装指定版本 npm i xxx@4.0.0

  • 默认是安装成生产依赖:npm i xxx -S安装到开发依赖: npm i xxx -D

  • 检查模块有没有新版本更新: npm outdated 检查指定模块有没有更新:npm outdated xxx

  • 更新指定模块:ncu -u xxx

  • 删除局部模块:npm uninstall xxx 删除全局安装的模块:npm uninstall package_name -g

  • 查看当前目录下所有模块:npm list

Correcting teacher:PHPzPHPz

Correction status:qualified

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post