npm install ERR! code E400/E404

在安装webpack的过程中,出现了一个报错npm install ERR! code E400/E404



解决方法:

1.查看npm配置文件 是否有错误:

执行 npm config edit 查看配置文件信息

执行

npm rebuild node-sass

npm update

npm install -g npm  升级npm

npm -v

2. 重新安装

nodejs

原文地址点击这里

原文地址:https://www.cnblogs.com/wush-1215/p/9866124.html

时间: 2024-07-30 18:30:42

npm install ERR! code E400/E404的相关文章

npm install 更新依赖报E404错误

今天在运行VUE项目的时候,报了无法找到某个模块的错误:之前都能正常运行的. 心想一定是其他同事又发布了一个新组件:于是利用命令更新某个模块:npm install xxx --save-dev 但是还是报错:还是重新更新一遍依赖吧,于是:npm install 还是熟悉的红色.... 难道是版本问题? npm -v  ; node -v 查看了版本,不是,版本挺新的. npm rebuild node-sass 之后重新来一遍 npm install .. 还是原来的配方. 最后,查看了下np

[ERROR] An error occurred while running npm i (exit code 1): code400

国庆来了,npm 的命令都不可以用:我新建了一个ionic的项目 ionic start ionc tabs 出现了这个报错:如下: PS G:\lianxi\myionic02> ionic start myionic03 tabs√ Creating directory .\myionic03 - done!√ Downloading and extracting tabs starter - done! ? Would you like to integrate your new app

npm install 报错:ERR! code EINTEGRITY 解决方案

npm升级后,npm install 报错了,报错信息:ERR! code EINTEGRITY到处百度搜索解决方案,终于找到了!“npm cache verify”这条命令帮助了不少人 npm cache verify npm cache clean #这个命令执行不了,就执行下面 --force的命令 npm cache clean --force #clean掉之后重新执行npm install命令 原文地址:https://www.cnblogs.com/lwjnicole/p/1079

输入npm install 报错npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] postinstall: `node scripts/build.js`

输入npm install 报以下错误 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] postinstall: `node scripts/build.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] postinstall script. npm ERR! This is probably not a

npm install 报错(npm ERR! errno -4048,Error: EPERM: operation not permitted,)解决方法

npm ERR! path E:\SouthernPowerGridProject\web_project\AutoOPS\autoops\node_modules\fsevents\node_modules\dashdash\node_modulesnpm ERR! code EPERMnpm ERR! errno -4048npm ERR! syscall scandirnpm ERR! Error: EPERM: operation not permitted, scandir 'E:\S

npm install 报错(npm ERR! errno 1)

最好看错误提示,若缺少包文件,就依次安装 问题一 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] postinstall: `node lib/post_install.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] postinstall script. npm ERR! This is probab

『奇葩问题集锦』npm install 报错 node-pre-gyp ERR! node-pre-gyp -v v0.6.25

gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. gyp ERR! stack at failNoPython (C:\Users\guxuelong\Desktop\dragon-ui\node_modules\.npminstall\node-gyp\3.3.1\node-gyp\lib\

【转】npm 安装express npm ERR! code UNABLE_TO_VERIFY_LEAF_SIGNATURE

npm  安装 express  出现 npm ERR! code UNABLE_TO_VERIFY_LEAF_SIGNATUREnpm ERR! errno UNABLE_TO_VERIFY_LEAF_SIGNATUREnpm ERR! request to https://registry.npmjs.org/express failed, reason: unable to verify the first certificate 设置下npm  config set strict-ssl

npm install时报错 npm ERR!Windows_NT 6.1.7601

解决办法:先设置代理为空 npm config set proxy null, 然后再npm install cnpm -g --registry=https://registry.npm.taobao.org!