我的节点版本8.9.1;
npm版本5.5.1;
当我尝试按照npm安装模块时,ERR报告为“代码E404”或“代码ENOENT”;
我尝试为我的项目'dvaDemo'安装不同的模块,例如'tldr'用于全局或'babel-plugin-import' dvaDemo是由dva-cli创建的antd项目
npm i babel-plugin-import --save
npm i tldr -g
答案 0 :(得分:0)
检查您的npm注册表:
turn_point <- which(z == max(z[z < 0]))
turn_plus_one <- c(turn_point, turn_point + 1)
z[turn_plus_one]
#> [1] -0.1052632 0.1052632
它可能不是“ https://registry.npmjs.org/”,如果是这样,请安装以npm get registry
结尾的特定软件包
--registry="https://registry.npmjs.org/"
或运行以下命令:
git install babel-plugin-import --registry="https://registry.npmjs.org/"