Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

小白提问:npm run ca报错 #52

Open
bitternolis opened this issue May 4, 2018 · 7 comments
Open

小白提问:npm run ca报错 #52

bitternolis opened this issue May 4, 2018 · 7 comments

Comments

@bitternolis
Copy link

F:\weixin-master\包你懂我>npm run ca

@ ca F:\weixin-master\包你懂我
anyproxy-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

@CheneyHen
Copy link

之前使用过这个,没啥问题,环境是win10x64。RUN CA这个只是生成代理服务器的证书,供代理服务器解析https用。你这个貌似生成CA证书的代码出毛病了。

@CheneyHen
Copy link

现在确实报错了。没法产生CA证书,并扔了一个错误,和你的提示差不多

@zhuweiyou
Copy link
Owner

从报错看,是缺少了包。

npm i 安装的时候有没有报错?试着删了 node_modules 目录,再重新 npm i 发下看看。

@bitternolis
Copy link
Author

试过了,同样的,rebuild也没用

@bitternolis
Copy link
Author

安装时报了几个warning
F:\weixin-master\大家来找茬腾讯版>npm i
npm WARN 大家来找茬腾讯版 No repository field.
npm WARN 大家来找茬腾讯版 No license field.

up to date in 4.224s

@zhuweiyou
Copy link
Owner

这个 warning 倒不是问题。

image
image

刚试了新机器(win10 x64)和我本机 macOS 都没问题的。

另外看到有人给 anyproxy 提了这个 BUG alibaba/anyproxy#364 你可以尝试一下

npm install inquirer -g

@bitternolis
Copy link
Author

确实成功了

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants