简体   繁体   English

安装 Drivelist 时找不到模块 'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin'

[英]Cannot find module 'C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin' While installing Drivelist

I have an electron project in which drivelist is used as a dependency.我有一个电子项目,其中驱动列表用作依赖项。 When I run "npm install", I get an error stating node-gyp\\bin folder wasn't found.当我运行“npm install”时,我收到一条错误消息,指出找不到 node-gyp\\bin 文件夹。 Whereas, I have node-gyp\\bin in my node modules, and even in c:\\programfiles\\nodejs ...." as opposed to what this error states. I guess drivelist couldn't build from source code after installation. But, what is the walk arround ? I am stuck because of this.然而,我的节点模块中有 node-gyp\\bin,甚至在 c:\\programfiles\\nodejs ....” 与此错误状态相反。我猜驱动列表在安装后无法从源代码构建。但是,什么是步行?因为这个我被卡住了。

drivelist@8.0.10 install C:\\Users...\\node_modules\\drivelist prebuild-install || drivelist@8.0.10 install C:\\Users...\\node_modules\\drivelist prebuild-install || node-gyp rebuild节点gyp重建

prebuild-install WARN install No prebuilt binaries found (target=10.17.0 runtime=node arch=x64 libc= platform=win32) prebuild-install WARN install 没有找到预编译的二进制文件(target=10.17.0 runtime=node arch=x64 libc=platform=win32)

C:\\Users...\\node_modules\\drivelist>if not defined npm_config_node_gyp (node "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\npm-lifecycle\\node-gyp-bin\\....\\node_modules\\node-gyp\\bin\\node-gyp.js" rebuild ) else (node "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin" rebuild ) internal/modules/cjs/loader.js:638 throw err; C:\\Users...\\node_modules\\drivelist>如果没有定义 npm_config_node_gyp (node "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\npm-lifecycle\\node-gyp-bin\\....\\node_modules\\ node-gyp\\bin\\node-gyp.js" 重建 ) else (节点 "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin" rebuild ) internal/modules/cjs/loader.js:第638话^ ^

Error: Cannot find module 'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3) npm WARN repoApp-explorer@3.1.0 No repository field.错误:在 Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) 处找不到模块“C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin”。 Module._load (internal/modules/cjs/loader.js:562:25) 在 Function.Module.runMain (internal/modules/cjs/loader.js:831:12) 启动时 (internal/bootstrap/node.js: 283:19) 在 bootstrapNodeJSCore (internal/bootstrap/node.js:623:3) npm WARN repoApp-explorer@3.1.0 没有存储库字段。 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules\\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm WARN 可选跳过可选依赖:fsevents@1.2.11 (node_modules\\fsevents):npm WARN notsup 跳过可选依赖:fsevents@1.2.11 不受支持的平台:想要 {"os":"darwin"any,"arch "} (当前: {"os":"win32","arch":"x64"})

npm ERR! npm 错误! code ELIFECYCLE npm ERR!代码 ELIFECYCLE npm ERR! errno 1 npm ERR!错误号 1 npm 错误号! drivelist@8.0.10 install: prebuild-install || node-gyp rebuild drivelist@8.0.10 安装: prebuild-install || node-gyp rebuild prebuild-install || node-gyp rebuild npm ERR! prebuild-install || node-gyp rebuild npm ERR! Exit status 1 npm ERR!退出状态 1 npm ERR! npm ERR! npm 错误! Failed at the drivelist@8.0.10 install script.在 drivelist@8.0.10 安装脚本中失败。 npm ERR! npm 错误! This is probably not a problem with npm.这可能不是 npm 的问题。 There is likely additional logging output above.上面可能有额外的日志输出。

npm ERR! npm 错误! A complete log of this run can be found in: npm ERR!可以在以下位置找到此运行的完整日志:npm ERR! C:\\Users\\user\\AppData\\Roaming\\npm-cache_logs\\2020-03-27T15_58_03_598Z-debug.log C:\\Users\\user\\AppData\\Roaming\\npm-cache_logs\\2020-03-27T15_58_03_598Z-debug.log

I don't know the cause of this error, since to me everything seems alright on my device, I went through every link I could find till now on the internet seeking for solution but I haven't found any solution yet.我不知道此错误的原因,因为对我来说,我的设备上一切正常,我浏览了迄今为止在互联网上找到的所有链接以寻求解决方案,但我还没有找到任何解决方案。 Please can anyone help ?请问有人可以帮忙吗?

也许你可以删除node_modules ,然后npm install再次因为在我的情况下它的工作

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 节点 Nodemon 错误:找不到模块 'C:\\Program Files\\nodejs\\node_modules\\nodemon\\bin\\' - Node Nodemon Error: Cannot find module 'C:\Program Files\nodejs\node_modules\nodemon\bin\' 节点 Nodemon 错误:找不到模块 'C:\Program Files\Git\node_modules\nodemon\bin\nodemon.js' - Node Nodemon Error: Cannot find module 'C:\Program Files\Git\node_modules\nodemon\bin\nodemon.js' internal/modules/cjs/loader.js:960 错误:找不到模块'C:\Users\Sanjai\AppData\Roaming\npm\node_modules\protractor\bin\protractor' - internal/modules/cjs/loader.js:960 Error: Cannot find module 'C:\Users\Sanjai\AppData\Roaming\npm\node_modules\protractor\bin\protractor' Yarn,node-gyp 重建编译错误,node_modules/fsevents: 命令失败 - Yarn, node-gyp rebuild compile error, node_modules/fsevents: Command failed 找不到模块'mongodb / node_modules / bson' - Cannot find module 'mongodb/node_modules/bson' GitLab CI 找不到模块错误(当它在 node_modules 中时) - GitLab CI cannot find module error (when it is in node_modules) npm安装在不在node_modules /中的模块上 - npm install on modules not in node_modules/ Foreverjs 尝试在 /node_modules/my-module/node_modules/my-module 中查找模块 - Foreverjs tries to find module in /node_modules/my-module/node_modules/my-module 即使安装在 node_modules 中,节点也找不到模块 - node cant find module even though is installed in node_modules 为什么 npm 安装不安装包到 /node_modules 文件夹? - Why is npm install not installing packages into /node_modules folder?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM