# 解决输入任何npm命令都报Error: Cannot find module ‘are-we-there-yet‘

简介: # 解决输入任何npm命令都报Error: Cannot find module ‘are-we-there-yet‘

解决输入任何npm命令都报Error: Cannot find module ‘are-we-there-yet

  1. 之后无论自己npm -v还是其他的命令都不起作用了,上网查了很多资料,sudo降级可是根本执行不了,于是网上搜了很多都是让删除C:\Users{账户}\下的.npmrc文件,可是也不行,于是将npm直接卸载了重装,然后好了。

第一步:第一步:将node给卸载

将Node文件夹模块全部删除,原先配置的模块,除此之外还要将C:\Users\Administrator\AppData\Roaming下的npm给删掉。

第二步:重新安装

node的下载地址:

https://www.runoob.com/nodejs/nodejs-install-setup.html

下载完成之后,安装之前先remove一下,清除一下之前的node配置。

然后重新下载

第三步:环境变量配置

点击我的电脑属性

点击高级设置

点击高级环境变量

找到系统变量中的path,点击编辑

点击编辑之后,输入node的路径

卸载完成,重装之后可以运行了


目录
打赏
0
0
0
0
42
分享
相关文章
|
3月前
|
node环境之Error: Cannot find module ‘chalk’ 报错无法解决的问题—-网上说让你npm install chalk 基本是没有用的-优雅草央千澈解决方案
node环境之Error: Cannot find module ‘chalk’ 报错无法解决的问题—-网上说让你npm install chalk 基本是没有用的-优雅草央千澈解决方案
283 13
node环境之Error: Cannot find module ‘chalk’ 报错无法解决的问题—-网上说让你npm install chalk 基本是没有用的-优雅草央千澈解决方案
npm账户需要登录问题npm error probably out of date. To correct this please try logging in again with优雅草央千澈解决方案
npm账户需要登录问题npm error probably out of date. To correct this please try logging in again with优雅草央千澈解决方案
104 0
npm账户需要登录问题npm error probably out of date. To correct this please try logging in again with优雅草央千澈解决方案
8种方法解决vue创建项目报错:command failed: npm install --loglevel error
该文章提供了八种解决Vue项目创建时遇到的`command failed: npm install --loglevel error`错误的方法,包括清理缓存、更换npm源、重新安装Node.js等措施。
8种方法解决vue创建项目报错:command failed: npm install --loglevel error
|
7月前
optional install error: Error: Unsupported URL Type: npm:vue-loader@^16.1.0
optional install error: Error: Unsupported URL Type: npm:vue-loader@^16.1.0
81 3
TS,编写TS文件,编写hello.ts文件,cmd下打开终端,输入tsc hello.ts会生成一个hello.js文件,简化命令,npm i -g ts-node,ts-node hello.ts
TS,编写TS文件,编写hello.ts文件,cmd下打开终端,输入tsc hello.ts会生成一个hello.js文件,简化命令,npm i -g ts-node,ts-node hello.ts
vue : 无法加载文件 D:\module\npm_module\npm_modules\vue.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.c
vue : 无法加载文件 D:\module\npm_module\npm_modules\vue.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.c
经常使用npm命令,但你真的知道它是什么意思吗?
经常使用npm命令,但你真的知道它是什么意思吗?
218 0

热门文章

最新文章

推荐镜像

更多
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等