npm安装错误; npm WARN tar EPERM:不允许操作,futime

问题描述 投票:1回答:1

这里的Noob,我正在尝试使用bash终端安装npm模块并用作Remote-WSL终端。

一些背景信息,我使用VSCode作为代码编辑器。我正在尝试使用node.js创建一个JavaScript应用程序。我在Windows 10上设置了Ubuntu终端。

将npm更新到最新版本后,当我尝试使用npm install express --save安装Express时开始出现这些错误>

npm WARN tar EPERM: operation not permitted, futime
npm WARN tar EPERM: operation not permitted, futime
npm WARN tar EPERM: operation not permitted, futime
// etc, etc, etc 500x...

npm WARN [email protected] No description
npm WARN [email protected] No repository field.

npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path /mnt/d/Program Files/Workspace/bashDemo/node_modules/bytes
npm ERR! dest /mnt/d/Program Files/Workspace/bashDemo/node_modules/.bytes.DELETE
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, rename '/mnt/d/Program Files/Workspace/bashDemo/node_modules/bytes' -> '/mnt/d/Program Files/Workspace/bashDemo/node_modules/.bytes.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/aaron/.npm/_logs/2019-11-14T21_41_32_512Z-debug.log

无论我尝试安装的模块如何,此问题仍然存在。...>

即使恢复为有效的npm原始版本6.12.1,这些错误仍然存​​在。

如果我运行npm install,我会得到

npm WARN [email protected] No description
npm WARN [email protected] No repository field.

up to date in 0.636s
found 0 vulnerabilities

我尝试清除缓存,重置,卸载,关闭/打开linux子系统,每次重新启动计算机,然后重新安装Ubuntu,然后通过设置过程,更新,升级,使用github页面上的curl脚本安装nvm,大约是现在的3倍。

我尝试/卸载并重新安装/ mnt / c /,遵循先前报告的似乎相似的问题的指南。这样做只会使情况变得更糟,(提示重置并重新安装Ubuntu终端)。

[Noob,我正在尝试使用bash终端来安装npm模块并用作Remote-WSL终端。一些背景信息,我使用VSCode作为代码编辑器。我正在尝试制作一个JavaScript应用程序...

node.js bash npm windows-subsystem-for-linux nvm
1个回答
0
投票

我的一个朋友帮助我解决了这个问题。是一个容易忽略的小问题>。>

已通过在Windows上重新安装node.js来解决...:/

© www.soinside.com 2019 - 2024. All rights reserved.