Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mac 下clone词项目安装依赖各种报错 #24

Open
xmm228 opened this issue Jul 15, 2019 · 4 comments
Open

mac 下clone词项目安装依赖各种报错 #24

xmm228 opened this issue Jul 15, 2019 · 4 comments

Comments

@xmm228
Copy link

xmm228 commented Jul 15, 2019

No description provided.

@xmm228
Copy link
Author

xmm228 commented Jul 15, 2019

1、安装依赖提示有包没有o matching version found for @types/marked@^0.7.0
2、npm run start 会报很多moudle没有,手动装了 还是不行
3、 ^
TSError: ⨯ Unable to compile TypeScript:
src/main.ts:9:25 - error TS2307: Cannot find module 'helmet'.

9 import * as helmet from 'helmet';
~~~~~~~~
src/main.ts:10:29 - error TS2307: Cannot find module 'body-parser'.

10 import * as bodyParser from 'body-parser';
~~~~~~~~~~~~~
src/main.ts:11:30 - error TS2307: Cannot find module 'compression'.

11 import * as compression from 'compression';
~~~~~~~~~~~~~
src/main.ts:12:28 - error TS2307: Cannot find module 'express-rate-limit'.

12 import * as rateLimit from 'express-rate-limit';
~~~~~~~~~~~~~~~~~~~~
src/main.ts:14:40 - error TS2307: Cannot find module '@nestjs/core'.

14 import { NestFactory, Reflector } from '@nestjs/core';
~~~~~~~~~~~~~~
src/main.ts:23:1 - error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try npm i @types/node.

23 process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';

src/main.ts:28:15 - error TS2304: Cannot find name 'global'.

28 Object.assign(global.console, {
              ~~~~~~
烦请作者百忙之中帮忙看一下,是依赖的问题还是什么问题,十分感谢!

@surmon-china
Copy link
Owner

最近一周我会发布一个新的版本,届时这些问题都会被解决掉,请关注。

@xmm228
Copy link
Author

xmm228 commented Jul 17, 2019

最近一周我会发布一个新的版本,届时这些问题都会被解决掉,请关注。

非常感谢作者的辛苦付出和开源,希望能把这个项目简化一些,如依赖更加轻量化、依赖更加大众化的插件,不然依赖的包不维护了在npm上安装都安装不了。另外希望作者把整体的架构简化清晰一些,这样利于我们新手上手和学习,否则根本无法上手。
只是个人建议,打扰了!非常感谢!

@surmon-china
Copy link
Owner

@xiaoming0827 已发布 v3.2.0,可以直接安装,应该无错

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

No branches or pull requests

2 participants