npm install 报错:i11egal operation on a directory ..怎么解决?

图片描述

EISDIR: i11egal operation on a directory, open C:Programljake
This is most likely not a problem wi th npm itself
and is related to npm not being able to find a package. json in
..

在网上找了很多也没弄明白咋回事,求大神解决下

阅读 4.4k
3 个回答

你在项目路径有新建package.json文件吗

你在System32文件夹,npm没有权限生成临时文件。

以管理员身份运行一次看看

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题