hexo博客时WARN Failed to install dependencies. Please run ‘npm install‘ in “D:\hexo\blog“ folder.

简介: hexo博客时WARN Failed to install dependencies. Please run ‘npm install‘ in “D:\hexo\blog“ folder.

由于不是第一次使用hexo博客所以不有很认证的对待觉得很快就能够安装好,谁知频发出错。特在此记录一下。


错误展示


QiJian@DESKTOP-CLU05DB MINGW64 /d/hexo
$ hexo init blog
INFO  Cloning hexo-starter https://github.com/hexojs/hexo-starter.git
INFO  Install dependencies
WARN  Failed to install dependencies. Please run 'npm install' in "D:\hexo\blog" folder.


通过上面的最后一发现:说安装要我们在此刻的文件夹运行“npm install”


于是就跟着他说的做了一下:


20210306085800906.png


发现了一个大问题,居然说找不到npm命令。检查一遍没有错啊,软件安装了啊,用Windows下DOS命令npm -v ,没有发现什么问题。没办法了只有百度,得知安装完nodejs之后配置windows环境变量只能保证在命令行工具中可以使用npm,如果想在git bash中使用需要再安装一遍。


 git clone --recursive git://github.com/isaacs/npm.git

2021030609044797.png


检查一下:npm -v


20210306090529262.png


没有问题,可以继续使用了。

相关文章
|
1月前
|
网络安全 计算机视觉
【node】 npm install 报错:code 128
【node】 npm install 报错:code 128
39 1
|
1月前
|
JavaScript Windows
npm install安装太慢或者失败,可以尝试一下以下方法
npm install安装太慢或者失败,可以尝试一下以下方法
82 1
|
1月前
|
Linux
npm install 报错ERESOLVE unable to resolve dependency tree
npm install 报错ERESOLVE unable to resolve dependency tree
15 0
|
2天前
|
JavaScript
npm install没问题,但npm run dev的时候报Node Sass version 6.0.1 is incompatible with ^4.0.0 ^5.0.0
npm install没问题,但npm run dev的时候报Node Sass version 6.0.1 is incompatible with ^4.0.0 ^5.0.0
|
3天前
npm install 太慢?解决方法
npm install 太慢?解决方法
18 0
|
12天前
使用npm install时遇到问题:npm ERR! code ERESOLVE
使用npm install时遇到问题:npm ERR! code ERESOLVE
|
15天前
|
弹性计算 Dubbo Serverless
Serverless 应用引擎操作报错合集之阿里函数计算中配置完fc,出现‘Function instance exited unexpectedly(code 1, message:operation not permitted) with start command 'npm run start '. 报错如何解决
Serverless 应用引擎(SAE)是阿里云提供的Serverless PaaS平台,支持Spring Cloud、Dubbo、HSF等主流微服务框架,简化应用的部署、运维和弹性伸缩。在使用SAE过程中,可能会遇到各种操作报错。以下是一些常见的报错情况及其可能的原因和解决方法。
19 5
|
23天前
|
缓存 资源调度
npm install安装时一直idealTree:npm: sill idealTree buildDeps解决方案(亲测有效)
npm install安装时一直idealTree:npm: sill idealTree buildDeps解决方案(亲测有效)
39 2
|
1月前
|
JavaScript 开发者 资源调度
Spartacus 2211 开发版本采用 npm install 结合 package-lock.json 避免 build 出错
Spartacus 2211 开发版本采用 npm install 结合 package-lock.json 避免 build 出错
10 0
Spartacus 2211 开发版本采用 npm install 结合 package-lock.json 避免 build 出错