首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >NPM -无法安装包

NPM -无法安装包
EN

Stack Overflow用户
提问于 2021-01-15 02:32:42
回答 1查看 53关注 0票数 0

终端输入:npm init -y按预期工作,npm install --save cors nodedom express socket.io

得到这个错误:

代码语言:javascript
运行
复制
npm ERR! 404 Object Not Found - GET https://skimdb.npmjs.com/registry/nodedom - not_found
npm ERR! 404
npm ERR! 404  'nodedom@latest' is not in the npm registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Guy Arieli\AppData\Roaming\npm-cache\_logs\2021-01-14T17_02_20_885Z-debug.log
PS C:\Code\React\Chattime\server> npm config set registry https://skimdb.npmjs.com/registry
npm ERR! code E404
npm ERR! 404 Object Not Found - GET https://skimdb.npmjs.com/registry/nodedom - not_found
npm ERR! 404
npm ERR! 404  'nodedom@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Guy Arieli\AppData\Roaming\npm-cache\_logs\2021-01-14T17_03_26_067Z-debug.log
+ create-react-app@4.0.1
updated 1 package in 163.864s

其中是package.jason:

代码语言:javascript
运行
复制
{
  "name": "server",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC"
}

当我用这个包克隆一个项目时,所有的包都工作得很好,然而,当我尝试通过终端安装时,事情并不像预期的那样工作。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-01-15 02:45:06

正如错误消息所说,名为nodedom的包在npm上不可用。

你的意思是:node-dom

或者你指的是nodemon

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65724937

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档