英文:
Installing package npm fails with 404
问题
使用命令提示符,我正在尝试安装mineflayer-autoclicker,但失败了。我正在使用Node.js 18.17.0 LTS的Visual Studio Code版本,尝试使用终端安装mineflayer-autoclicker。
npm install --save mineflayer-autoclicker
npm ERR! code E404
npm ERR! 404 Not Found - GET https://github.com/npm/npm-registry-couchapp/mineflayer-autoclicker - Not Found
npm ERR! 404
npm ERR! 404 'mineflayer-autoclicker@*' is not in this 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.
英文:
Using the command prompt, I am trying to install mineflayer-autoclicker and it fails.I am writing in Visual Studio Code version of Node.js 18.17.0 LTS. I am trying to install mineflayer-autoclicker using the terminal.
npm install --save mineflayer-autoclicker
npm ERR! code E404
npm ERR! 404 Not Found - GET https://github.com/npm/npm-registry-couchapp/mineflayer-autoclicker - Not Found
npm ERR! 404
npm ERR! 404 'mineflayer-autoclicker@*' is not in this 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.
答案1
得分: 1
运行以下命令来解决这个问题:
npm config set registry http://registry.npmjs.org
npm -g install npm
npm cache clean -f
然后再次运行安装命令。
英文:
Run the commands below to solve this issue
npm config set registry http://registry.npmjs.org
npm -g install npm
npm cache clean -f
Then run the installation command again.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论