【发布时间】:2019-12-25 16:08:59
【问题描述】:
我无法通过 npm install express 安装 Express。实际上,如果它尝试安装名为 content-type 的开发依赖项,我会收到错误消息。 https://www.npmjs.com/package/content-type
我尝试安装 content-type 包,它不起作用。这是错误:
60 error path C:\Users\kv\workspace\test\node_modules\content-type
61 error code ENOENT
62 error errno -4058
63 error syscall rename
64 error enoent ENOENT: no such file or directory, rename 'C:\Users\kv\workspace\test\node_modules\content-type' -> 'C:\Users\kv\workspace\test\node_modules\.content-type.DELETE'
65 error enoent This is related to npm not being able to find a file.
我使用的是 Windows 7 64 位。我已经在 1 周前安装了 Express,运行良好。
这里是完整的日志文件:https://pastebin.com/7S4MYLed
有人知道这个问题以及如何解决它吗?我已经尝试重新安装 Node.js/npm。我还清除了缓存并重新启动了计算机。
【问题讨论】:
-
您是否尝试删除 node_modules 文件夹并重新安装?
标签: node.js npm npm-install