windows npm install error
runRole opened this issue · 4 comments
不知道是不是我自己的问题。windows下面项目跑不起来
- window 还是 windows?
- 跑不起来原因千万种,电脑没开机都是其中一种,你是哪种?
@surmon-china
windows
1、nodepress
X:\codingWorkspace\NuxtBlog\nodepress>npm run start:dev
nodepress@3.1.0 start:dev X:\codingWorkspace\NuxtBlog\nodepress
set NODE_ENV=development && nodemon
[nodemon] 1.18.7
[nodemon] to restart at any time, enter rs
[nodemon] watching: X:\codingWorkspace\NuxtBlog\nodepress\src/**/*
[nodemon] starting ts-node -r tsconfig-paths/register src/main.ts
X:\codingWorkspace\NuxtBlog\nodepress\node_modules\ts-node\src\index.ts:240
return new TSError(diagnosticText, diagnosticCodes)
^
TSError: ⨯ Unable to compile TypeScript:
src/processors/database/database.provider.ts:21:7 - error TS2739: Type 'Function' is missing the following properties from type 'PromiseConstructor': all, race, reject, resolve, [Symbol.species]
21 promiseLibrary: global.Promise,
~~~~~~~~~~~~~~
node_modules/@types/mongodb/index.d.ts:438:5
438 promiseLibrary?: PromiseConstructor;
~~~~~~~~~~~~~~
The expected type comes from property 'promiseLibrary' which is declared here on type 'ConnectionOptions'
at createTSError (X:\codingWorkspace\NuxtBlog\nodepress\node_modules\ts-node\src\index.ts:240:12)
at reportTSError (X:\codingWorkspace\NuxtBlog\nodepress\node_modules\ts-node\src\index.ts:244:19)
at getOutput (X:\codingWorkspace\NuxtBlog\nodepress\node_modules\ts-node\src\index.ts:360:34)
at Object.compile (X:\codingWorkspace\NuxtBlog\nodepress\node_modules\ts-node\src\index.ts:393:11)
at Module.m._compile (X:\codingWorkspace\NuxtBlog\nodepress\node_modules\ts-node\src\index.ts:439:43)
at Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Object.require.extensions.(anonymous function) [as .ts] (X:\codingWorkspace\NuxtBlog\nodepress\node_modules\ts-node\src\index.ts:442:12)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
[nodemon] app crashed - waiting for file changes before starting...
- 这是 nodepress 项目的问题,它不应该出现在其他的项目下。
- nest 及配套的版本迭代速度也许快于项目所依赖的版本,所以才需要包管理器进行版本锁定,所以在 nodepress 中应该使用 yarn 安装。
- 请任何时候严谨、准确地提供高质量的 Issue。
嗯。谢了。问题提错了项目是我大意了