终端输入:npm init -y按预期工作,npm install --save cors nodedom express socket.io
得到这个错误:
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:
{
  "name": "server",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC"
}当我用这个包克隆一个项目时,所有的包都工作得很好,然而,当我尝试通过终端安装时,事情并不像预期的那样工作。
https://stackoverflow.com/questions/65724937
复制相似问题