node.js - 关于npm 的问题

浏览:30日期:2022-10-09

问题描述

$ npm bugs Myvueprojectnpm ERR! Windows_NT 6.1.7600npm ERR! argv 'C:Program Filesnodejsnode.exe' 'C:UsersAdministratorAppDataRoamingnpmnode_modulesnpmbinnpm-cli.js' 'bugs' 'Myvueproject'npm ERR! node v4.5.0npm ERR! npm v3.10.6npm ERR! code E404

npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/vu...npm ERR! 404npm ERR! 404 ’vueproject’ is not in the npm registry.npm ERR! 404 You should bug the author to publish it (or use the name yourself!)npm ERR! 404npm ERR! 404 Note that you can also install from anpm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:npm ERR! C:usersAdministratorMyvueprojectnpm-debug.log应该怎么解决?

问题解答

回答1:

npm bugs会搜索当前目录下package.json中bugs的参数,提交你的bug,你可以指定你的打开方式和仓库地址

npm bugs <projectName> --browser open --registry https://registry.npmjs.org/

{ 'url' : 'https://github.com/owner/project/issues', 'email' : 'project@hostname.com'}

检查你的package.json的配置

回答2:

404是网络问题,使用代理或者切换国内的NPM源,具体方式自己去查。

相关文章: