nodejs安装第三方模块

这篇博客详细介绍了如何通过npm来安装protobufjs。首先,通过`npm view protobufjs`查看不同版本,然后使用`npm install protobufjs@6.10.1`指定版本进行安装,安装过程顺利,成功添加了protobufjs的相关命令并完成了postinstall步骤。
摘要由CSDN通过智能技术生成

比如安装protobufjs

1.查看最近版本view

$ npm view protobufjs

列出最近结果:

dist-tags:
latest: 6.10.1
next: 6.10.1-beta.0

2..安装指定版本install

$ npm install protobufjs@6.10.1 -g

结果:

andrew@DESKTOP-P49JS9I /cygdrive/e/study/game/egret/test_websocket
$ npm install protobufjs@6.10.1 -g
C:\Users\andrew\AppData\Roaming\npm\pbjs -> C:\Users\andrew\AppData\Roaming\npm\node_modules\protobufjs\bin\pbjs
C:\Users\andrew\AppData\Roaming\npm\pbts -> C:\Users\andrew\AppData\Roaming\npm\node_modules\protobufjs\bin\pbts

> protobufjs@6.10.1 postinstall C:\Users\andrew\AppData\Roaming\npm\node_modules\protobufjs
> node scripts/postinstall

+ protobufjs@6.10.1
added 14 packages from 46 contributors in 3.563s

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值