warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It isadvised not to mix packagemanagers inorder to avoid resolution inconsistencies caused by unsynchronized lock files. To clear thiswarning, remove package-lock.json.
warning antd > rc-tree-select > rc-trigger > rc-animate > fbjs > core-js@1.2.7: core-js@<2.6.8isno longer maintained. Please, upgrade to core-js@3or at least to actual version of core-js@2.
error An unexpected error occurred: "https://registry.npm.taobao.org/_process: Not found".
补充两点: 1.最新版mqtt在小程序会报net.createConnection 未定义,需要使用4.0.1版本。2.wxs默认对应是wss协议,在测试环境如果临时没有wss就需要改一下源码,把wxs对应的协议改为ws
楼主大大,我的问题是 ,总是报
缺少npm包_process,开始安装...
warning ..\..\..\
package
.json: No license field
warning
package
-lock.json found. Your project contains lock files generated by tools other than Yarn. It
is
advised not to mix
package
managers
in
order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear
this
warning, remove
package
-lock.json.
warning antd > rc-tree-select > rc-trigger > rc-animate > fbjs > core-js@
1.2
.
7
: core-js@<
2.6
.
8
is
no longer maintained. Please, upgrade to core-js@
3
or at least to actual version of core-js@
2
.
error An unexpected error occurred:
"https://registry.npm.taobao.org/_process: Not found"
.
你们真机上可以正常连接吗?
可以的,你要仔细看文档哦,wxs
兄弟看一下我的问题,真机一直连不上https://developers.weixin.qq.com/community/develop/doc/00082ca48ec8b00ecc3895ceb53c00
我也是同样的问题,一开始编译都通不过,还是看了你的帖子才编译通过的
我已经连接通讯上,直接引用这个文件就行https://unpkg.com/mqtt/dist/mqtt.min.js
具体参考https://blog.csdn.net/ngl272/article/details/87887885
非常感谢楼主,通过这个问题,深感自己对npm的结构和原理理解不深入,后面需要认真的学习一下