npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\licc\package.json'
程序员文章站
2022-03-03 17:42:54
...
问题描述:
在项目中使用npm
安装gulp
时报异常,node_modle文件夹出不来,异常输出如下:
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\licc\package.json'
npm WARN licc No description
npm WARN licc No repository field.
npm WARN licc No README data
npm WARN licc No license field.
解决方案:
输入npm init -f
命令后再安装gulp
,
npm init -f
解释说明:
npm init -f
命令行的作用:一个模块不管是否安装过, npm
都要强制重新安装,可以使用 -f
或 --force
参数。
上一篇: [NPM解决方案]npm WARN deprecated core-js2.6.11,core-js小于3 is no longer maintained
下一篇: npm安装express时出现npm WARN [email protected] No descriptionnpm WARN [email protected] No repos
推荐阅读
-
【webpac】npm ERR! enoent ENOENT: no such file or directory, open ‘E:\DEMO\webpack的使用-v2\package.json‘
-
npm WARN enoent ENOENT: no such file or directory, open 'D:\····\package.json(找不到package.json)...
-
安装RocketChat报错:npm WARN saveError ENOENT: no such file or directory, open ‘/tmp/bundle/programs/web.
-
FAQ:NodeJS安装报错npm WARN saveError ENOENT: no such file or directory, open 'G:\Node\package.json'
-
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\licc\package.json'