什么是错误!代码ENOLOCAL npm ERR!无法从错误安装? [英] What is the ERR! code ENOLOCAL npm ERR! Could not install from error?
本文介绍了什么是错误!代码ENOLOCAL npm ERR!无法从错误安装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我将更新npm最新版本,但显示此错误消息,
I am going to update npm latest version, but it's showing this error message,
G:\>npm i -g npm ERR! code ENOLOCAL npm ERR! Could not install from "" as it does not contain a package.json file.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\hemanth\AppData\Roaming\npm-cache\_logs\2018-01-08T03_34_29_774Z-debug.log
G:\>
推荐答案
这对我有用:
npm cache verify
然后我重新运行:
npm install -g create-react-app
它按预期安装:问题已解决
And it installed like as expected: Issue resolved
这篇关于什么是错误!代码ENOLOCAL npm ERR!无法从错误安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文