npm 错误!路径 \wsl.localhost\Ubuntu

编程入门 行业动态 更新时间:2024-10-04 03:29:38

npm 错误!<a href=https://www.elefans.com/category/jswz/34/1771438.html style=路径 \wsl.localhost\Ubuntu"/>

npm 错误!路径 \wsl.localhost\Ubuntu

目前,我正在尝试创建一个 PHP laravel 应用程序并在

nodejs
上安装一些
wsl-2
依赖项,但出现以下错误(参见 -基本培训)。仅供参考,我已经安装了
nodejs
v18.16.0:

jdoe@Grieg:~/DevProjects/litenotes$ curl -s /litenotes | bash
...
jdoe@Grieg:~/DevProjects/litenotes$  ./vendor/bin/sail up

在另一个终端:

jdoe@Grieg:~/DevProjects/litenotes$ ./vendor/bin/sail composer require laravel/breeze --dev
...
jdoe@Grieg:~/DevProjects/litenotes$ ./vendor/bin/sail artisan breeze:install
...
jdoe@Grieg:~/DevProjects/litenotes$ npm install
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup   [
npm WARN cleanup     '\\\\wsl.localhost\\Ubuntu-22.04\\home\\jdoe\\DevProjects\\litenotes\\node_modules\\.bin\\he',
npm WARN cleanup     [Error: EISDIR: illegal operation on a directory, lstat '\\wsl.localhost\Ubuntu-22.04\home\jdoe\DevProjects\litenotes\node_modules\.bin\he'] {
npm WARN cleanup       errno: -4068,
npm WARN cleanup       code: 'EISDIR',
npm WARN cleanup       syscall: 'lstat',
npm WARN cleanup       path: '\\\\wsl.localhost\\Ubuntu-22.04\\home\\jdoe\\DevProjects\\litenotes\\node_modules\\.bin\\he'
npm WARN cleanup     }
npm WARN cleanup   ],
npm WARN cleanup   [
npm WARN cleanup     '\\\\wsl.localhost\\Ubuntu-22.04\\home\\jdoe\\DevProjects\\litenotes\\node_modules\\.bin\\autoprefixer',
npm WARN cleanup     [Error: EISDIR: illegal operation on a directory, lstat '\\wsl.localhost\Ubuntu-22.04\home\jdoe\DevProjects\litenotes\node_modules\.bin\autoprefixer'] {
npm WARN cleanup       errno: -4068,
npm WARN cleanup       code: 'EISDIR',
npm WARN cleanup       syscall: 'lstat',
npm WARN cleanup       path: '\\\\wsl.localhost\\Ubuntu-22.04\\home\\jdoe\\DevProjects\\litenotes\\node_modules\\.bin\\autoprefixer'
npm WARN cleanup     }
npm WARN cleanup   ],
npm WARN cleanup   [
npm WARN cleanup     '\\\\wsl.localhost\\Ubuntu-22.04\\home\\jdoe\\DevProjects\\litenotes\\node_modules\\tailwindcss',
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir '\\wsl.localhost\Ubuntu-22.04\home\jdoe\DevProjects\litenotes\node_modules\tailwindcss\lib'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: '\\\\wsl.localhost\\Ubuntu-22.04\\home\\jdoe\\DevProjects\\litenotes\\node_modules\\tailwindcss\\lib'
npm WARN cleanup     }
npm WARN cleanup   ]
npm WARN cleanup ]
npm ERR! code EISDIR
npm ERR! syscall lstat
npm ERR! path \\wsl.localhost\Ubuntu-22.04\home\jdoe\DevProjects\litenotes\node_modules\.bin\autoprefixer
npm ERR! errno -4068
npm ERR! EISDIR: illegal operation on a directory, lstat '\\wsl.localhost\Ubuntu-22.04\home\jdoe\DevProjects\litenotes\node_modules\.bin\autoprefixer'

npm ERR! A complete log of this run can be found in: C:\Users\psalm\AppData\Local\npm-cache\_logs\2023-05-14T05_45_26_819Z-debug-0.log

这是我的 npm 版本:

jdoe@Grieg:~/DevProjects/litenotes$ npm -v
9.6.6

此外,我已经检查了以下站点,但还没有解决方案:

找不到模块 '\wsl.localhost\Ubuntu-20.04\mn

回答如下:

更多推荐

npm 错误!路径 \wsl.localhost\Ubuntu

本文发布于:2024-05-31 03:04:47,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1771209.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:路径   错误   npm   Ubuntu   localhost

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!