相关疑难解决方法(0)

如何覆盖嵌套的NPM依赖项版本?

我想使用grunt-contrib-jasmineNPM包.它有各种依赖.依赖图的一部分如下所示:

?? grunt-contrib-jasmine@0.4.1
 ? ??? grunt-lib-phantomjs@0.2.0
 ? ? ??? phantomjs@1.8.2-2
Run Code Online (Sandbox Code Playgroud)

不幸的是,这个版本中存在一个错误phantomjs,导致它无法在Mac OS X上正确安装.这在最新版本中已得到修复.

我怎样才能grunt-lib-phantomjs使用更新的版本phantomjs

一些额外的背景:

node.js npm

257
推荐指数
7
解决办法
11万
查看次数

我该如何解决使用 ng new 时出现的错误?

我已经使用命令 npm install -g @angular/cli 安装了 angular-cli。当我尝试运行命令 ng new 并创建新项目时,出现错误:

\n
\xe2\xa0\x99 Installing packages (npm)...npm WARN deprecated source-map-resolve@0.6.0: See https://github.com/lydell/source-map-resolve#deprecated\nnpm ERR! code E404\nnpm ERR! 404 Not Found - GET https://registry.npmjs.org/@types/eslint/-/eslint-8.4.4.tgz - Not found\nnpm ERR! 404 \nnpm ERR! 404  '@types/eslint@https://registry.npmjs.org/@types/eslint/-/eslint-8.4.4.tgz' is not in this registry.\nnpm ERR! 404 You should bug the author to publish it (or use the name yourself!)\nnpm ERR! 404 \nnpm ERR! 404 Note that you can also install from a\nnpm ERR! 404 tarball, folder, http url, or git …
Run Code Online (Sandbox Code Playgroud)

npm angular-cli

33
推荐指数
1
解决办法
4678
查看次数

NPM 注册表中缺少 @types/eslint v8.4.4

当 npm 注册表缺少 @types/eslint/-/eslint-8.4.4.tgz 时该怎么办?

我跳上运行 npx create-react-app,但是,其输出是在 npmregistry 上找不到 eslint-8.4.4,在网上查找他们刚刚发布了 8.4.4 我相信?

错误:“@types/eslint@8.4.4”不在 npm 注册表中。

我试图找出如何像上周使用的项目一样使用 eslint-8.4.3,但我似乎找不到一种方法来创建一个专门使用 eslint8.4.3 并且不调用缺失的最新版本的新 React 应用程序。 在此输入图像描述

javascript types npm reactjs eslint

5
推荐指数
1
解决办法
1404
查看次数

标签 统计

npm ×3

angular-cli ×1

eslint ×1

javascript ×1

node.js ×1

reactjs ×1

types ×1