我刚刚更新了我的angular项目。看起来一切都很好,除了我得到了以下警告: npm WARN @angular-devkit/build-angular@0.800.2 requires a peer of typescript@>=3.1 < 3.5 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/compiler-cli@8.0.0 requires a peer of typescript@>=3.4 <3.5 but none is i
我使用中指定的npm创建空nuxt项目。我选择使用打字本。然后用npm run dev为这个新项目服务。该应用程序运行良好。但是,我在store/index.ts上创建了一个文件,在此之后,我得到了一个错误:
ERROR Failed to compile with 1 errors friendly-errors 19:06:00
This dependency was not found:
我正试图在一个码头容器中运行一个类型记录express.js。运行码头后,我得到以下错误:
> ts-node-dev src/app.ts
Using ts-node version 8.10.1, typescript version 3.9.2
TypeError [ERR_FEATURE_UNAVAILABLE_ON_PLATFORM]: The feature watch recursively is unavailable on the current platform, which is being used to run Node.js
at Object.wa
正如我从SO中学到的,节点的依赖关系不会自动安装,因为npm 3。
npm WARN eslint-config-react-app@5.0.2 requires a peer of @typescript-eslint/eslint-plugin@2.x but none was installed.
npm WARN eslint-config-react-app@5.0.2 requires a peer of @typescript-eslint/parser@2.x but none was installed.
npm WARN eslint-config-react-app@5.
我收到以下错误: ERROR in RangeError: Maximum call stack size exceeded
at getResolvedBaseConstraint (/project/node_modules/typescript/lib/typescript.js:53262:43)
at getBaseConstraintOfType (/project/node_modules/typescript/lib/typescript.js:53242:34)
at getTypeFacts (/project/node_modules/types
我有一个节点js应用程序(使用typescript开发)部署在azure应用程序服务上。到目前为止,这款应用运行得很好。我不得不做一些代码更改,当我部署应用程序时,它失败了,错误如下 + typescript@3.8.3
updated 1 package in 4.391s
Building Typescript files.
D:\local\AppData\npm\node_modules\typescript\lib\tsc.js:79
throw new Error("TypeScript requires an environment that prov
因为我已经将我的代码从Angular 7迁移到Angular 8,并且迁移已经完成,但是当我使用npm start运行应用程序时,它会给出以下错误
ERROR in The Angular Compiler requires TypeScript >=3.4.0 and <3.5.0 but 3.5.1 was found instead.
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
i 「wdm」:
我有一个不久前构建的npm命令行应用程序,它运行得很好。既然我已经更新了它,并且由于这段时间内类型记录的版本发生了变化,当我想运行这个包时,我会收到一个错误,它说:
Debug Failure. False expression: Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a
当我尝试使用Next.js运行npm run dev应用程序时,我会收到一条错误消息,上面说我没有需要的包来运行下一个带有类型记录的包:
Please install @types/react by running:
npm install --save-dev @types/react
If you are not trying to use TypeScript, please remove the tsconfig.json file from your package root (and any TypeScript files in your pages dire
我刚刚初始化了一个VueJs项目:
npm init vue@3 .
Need to install the following packages:
create-vue@3.3.2
Ok to proceed? (y) y
Vue.js - The Progressive JavaScript Framework
√ Package name: ... no-interrupts
√ Add TypeScript? ... Yes
√ Add JSX Support? ... Yes
√ Add Vue Router for Single Page Application devel
我无法构建我的ionic 2应用程序。Serving在更改文件后工作。
在ionic serve上,我得到以下错误消息:
[07:36:10] ionic-app-scripts 1.0.0
[07:36:10] watch started ...
[07:36:10] build dev started ...
[07:36:10] clean started ...
[07:36:10] clean finished in 1 ms
[07:36:10] copy started ...
[07:36:10] transpile started ...
[07:
在我的Debian 10中,我遇到了和以前很多人一样的npm问题:
npm does not support Node.js v10.15.2
在搜索修复程序时,我发现这个bug是在debian中修复的:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=904422
但是我有来自debian的最新版本的npm软件包,它仍然是5.8.0。有人能解释一下错误修复是否和何时会出现在debian的稳定回购中吗?谢谢
我正在尝试使用npm.But安装react-contenteditable,eslint的对等依赖项不允许我安装以下错误。我使用的是Ubuntu 18.04 LTS操作系统。
这是我用来安装react-contenteditable的代码。
npm i react-contenteditable
npm WARN @typescript-eslint/eslint-plugin@1.11.0 requires a peer of eslint@^5.0.0 but none is installed. You must install peer dependencies yourself.
n
第一次使用react本机。当我运行npm并打开本地主机时,它说“出现了一个意外的错误”。如果我扫描世博会应用程序中的QR代码,它会说“出了问题。网络响应超时了”。
当我打开控制台时,会出现以下情况
我创建了这个应用程序如下:
npm install -g expo-cli
expo init MyApp
Selected the typescript template
And then at the MyApp folder npm start
当我运行'npm‘从克隆的存储库安装依赖项时,我从终端得到下面的错误。我使用windows 10
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: react-scripts@4.0.0
npm ERR! Found: typescript@4.1.3
npm ERR! node_modules/typescript
npm ERR! dev typescript@"4.1.3" from the root project
npm ERR!
npm ERR! Could no
当我尝试通过npm安装angular cli时,它出错了。我希望这里有人能告诉我如何修复它,或者以另一种方式安装它。运行npm install -g @angular/cli的输出如下:
npm WARN tarball tarball data for rxjs@6.3.3 (sha512-JTWmoY9tWCs7zvIk/CvRjhjGaOd+OVBM987mxFo+OW66cGpdKjZcpmc74ES1sB//7Kl/PAe8+wEakuhG4pcgOw==) seems to be corrupted. Trying one more time.
npm WARN tarball t
我遵循了一个指南,学习如何将包发布到NpmJS。但是,当我更新README.MD并尝试更新NpmJS上的包时,我得到了以下错误: npm version patch
npm ERR! Git working directory not clean.
npm ERR! A .gitignore
npm ERR! AM README.md
npm ERR! A babel.config.js
npm ERR! AM package-lock.json
npm ERR! AM package.json
npm ERR! AD public/favicon.ico
npm ERR! AD pub
在设置项目时,在npm run build上获取此错误
C:..\src\packages\Microsoft.Portal.Tools.5.0.303.3330\build\TypeScript\tools\Microsoft.TypeScript.targets(219,5):error MSB4062:无法从程序集C:..\src\packages\Microsoft.Portal.Tools.5.0.303.3330\build\TypeScript\build..\tools\net45\TypeScript.Tasks.dll.加载"TypeScript.Tasks.Ch
我刚开始前端开发,现在我必须维护一个AngularJS应用程序。为了测试我的应用程序,我尝试安装http-server,但是当我运行npm install http-server -g命令时,我得到以下错误:
npm ERR! code ETARGET
npm ERR! notarget No matching version found for ecstatic@^3.0.0
npm ERR! notarget In most cases you ir one of your dependencies are requesting
npm ERR! notarget a package ve