当我试图在Linux12.04上安装gruntjs (带有镜像包源代码)时,我遇到了一个错误。
以下是错误:
sudo npm install -g grunt-cli
npm ERR! Error: ENOENT, open '/home/havetl/.npm/d63f3d0b-grunt-cli.lock'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it
我在windows机器中的应用程序只运行节点版本的v6.11.0,NPM是3.11.11。
现在,我的节点版本和NPM已经升级。我无法下载节点版本和NPM版本。节点的当前版本为10.14.1,npm为5.5.1。
当我试图降级时,我面临以下错误。
npm install -g node@6.11.0
npm install -g npm@3.10.10
以下误差
npm WARN npm npm does not support Node.js v10.14.1
npm WARN npm You should probably upgrade to a newer version of
这里的NOOB,试着遵循下面的React教程:
README.md文件告诉: npm安装节点server.js
克隆回购后,我运行了npm安装和一些东西(模块?)下载了。但是当我试图运行npm server.js时,我收到了这样的信息:
Specify configs in the ini-formatted file:
C:\Users\User\.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config
npm@3
当我为一个项目安装依赖项时,我看到了这一点:
Update available 5.7.1 → 5.8.0 │
│ Run npm i npm to update
然后我做了这个:
$ npm i npm
npm WARN react-hot-api@0.4.7 requires a peer of react@>=0.11.0 || ^0.14.0-rc but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OP
我之所以打开这个问题是因为:npm无法安装gulp
我收到以下错误:
有人能告诉我怎么修吗?
我已经使用安装了express,没有错误。
C:\node\demo>npm install gulp
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid
无法在atom上安装任何软件包。错误是
npm ERR! code Z_BUF_ERROR
npm ERR! errno -5
npm ERR! zlib: unexpected end of file
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/yaoli/.atom/.apm/_logs/2020-02-17T09_39_31_164Z-debug.log
我已经尝试清理npm缓存并重新安装npm。它没有起作用。
无法使用npm: npm安装eslint --保存-dev,npm安装-g快递生成器来安装这些包,同时给出相同的错误:**
npm ERR! Unexpected end of JSON input while parsing near '...0.2.13":{"name":"mini'
npm错误!有关此运行的完整日志可以在: npm ERR!/home/user/.npm/_logs/2020-06-04T15_20_40_810Z-debug.log中找到。
但是,在安装另一个软件包npm时,请立即将其成功安装。