node:internal/modules/cjs/loader:1024 throw err; ^ Error: Cannot find module 'D:\Program Files (x86)\node_modules\npm\bin\npm-cli.js'
时间: 2023-11-26 07:04:15 浏览: 170
根据你提供的引用内容,报错信息显示在D:\Program Files (x86)\node_modules\npm\bin\npm-cli.js中找不到模块 'D:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js'。这个报错通常是由于没有正确安装npm导致的。解决这个问题的方法是将node-v14.15.5-win-x64\node_modules下面的npm文件夹拷贝到原来的D:\Program Files (x86)\nodejs\node_modules中。这样可以确保npm模块正确安装并能够找到所需要的文件。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Cannot find module ‘D:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js 决解方案亲测...](https://blog.csdn.net/qq_45021180/article/details/113957743)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [启动 fabric 区块链rest接口过程中的问题 runApp.sh Cannot find module ‘fabric-client’](https://download.csdn.net/download/weixin_38688745/14043233)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文