最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

npm 错误!路径 wsl.localhostUbuntu

网站源码admin25浏览0评论

npm 错误!路径 \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

回答如下:
发布评论

评论列表(0)

  1. 暂无评论