当前位置:   article > 正文

Deveco Studio Install JS 3.1.0.0 failed._cause: unable to run npm install.

cause: unable to run npm install.

Deveco Studio初始配置时报错

Error: : Install JS 3.1.0.0 failed. 
Error: : Install JS dependencies failed.
Cause: Unable to run npm install.
Solution: See https://developer.harmonyos.com/cn/docs/documentation/doc-guides/f
aq-development-environment-0000001168829643#section1311117111474
 

解决方法:

打开cmd终端,输入npm install 看下有没有报错
C:\Users\Wincent>npm install
npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\Wincent\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Wincent\package.json'
npm WARN Wincent No description
npm WARN Wincent No repository field.
npm WARN Wincent No README data
npm WARN Wincent No license field.

//提示这个以后我删掉C:\Users\Wincent\package.json
//反手把.npmrc, .npmrc-bak-xxx文件也删除了,再retry就可以了

C:\Users\Wincent>npm install
npm WARN saveError ENOENT: no such file or directory,

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小丑西瓜9/article/detail/339572
推荐阅读
相关标签
  

闽ICP备14008679号