此处要求参与构建 npm 的 package.json 需要在 project.config.jso
此处要求参与构建 npm 的 package.json 需要在 project.config.json 定义的 miniprogramRoot 之内。 无法理解这句话是什么意思,目前我遇到的问题是:在小程序 package.json 所在的目录中执行命令 npm install
安装 npm 包报错了
报错信息如下:
48 verbose stack Error: unable to resolve dependency tree
48 verbose stack at [failPeerConflict] (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:1378:25)
48 verbose stack at [loadPeerSet] (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:1344:34)
48 verbose stack at async [buildDepStep] (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:928:11)
48 verbose stack at async Arborist.buildIdealTree (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:206:7)
48 verbose stack at async Promise.all (index 1)
48 verbose stack at async Arborist.reify (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:156:5)
48 verbose stack at async Install.exec (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\lib\commands\install.js:146:5)
48 verbose stack at async module.exports (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\lib\cli.js:133:5)
49 verbose cwd C:\Users\Administrator\Downloads\tensorflow-wxapp-master\tensorflow-wxapp-master
50 verbose Windows_NT 10.0.19045
51 verbose node v18.12.1
52 verbose npm v9.2.0
53 error code ERESOLVE
54 error ERESOLVE unable to resolve dependency tree