This repository has been archived by the owner on Jul 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 382
小白提问:npm run ca报错 #52
Comments
之前使用过这个,没啥问题,环境是win10x64。RUN CA这个只是生成代理服务器的证书,供代理服务器解析https用。你这个貌似生成CA证书的代码出毛病了。 |
现在确实报错了。没法产生CA证书,并扔了一个错误,和你的提示差不多 |
从报错看,是缺少了包。 npm i 安装的时候有没有报错?试着删了 node_modules 目录,再重新 npm i 发下看看。 |
试过了,同样的,rebuild也没用 |
安装时报了几个warning up to date in 4.224s |
这个 warning 倒不是问题。 刚试了新机器(win10 x64)和我本机 macOS 都没问题的。 另外看到有人给 anyproxy 提了这个 BUG alibaba/anyproxy#364 你可以尝试一下 npm install inquirer -g |
确实成功了 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
F:\weixin-master\包你懂我>npm run ca
internal/modules/cjs/loader.js:573
throw err;
^
Error: Cannot find module 'inquirer'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:571:15)
at Function.Module._load (internal/modules/cjs/loader.js:497:25)
at Module.require (internal/modules/cjs/loader.js:626:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (F:\weixin-master\包你懂我\node_modules\anyproxy\bin\anyproxy-ca:15:18)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ ca:
anyproxy-ca
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ ca script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! F:\nodejs\node_cache_logs\2018-05-04T19_01_50_158Z-debug.log
The text was updated successfully, but these errors were encountered: