Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Unable to install the NPM package on Windows 11 #359

Open
2 tasks done
soham2008xyz opened this issue Apr 2, 2024 · 0 comments
Open
2 tasks done

Unable to install the NPM package on Windows 11 #359

soham2008xyz opened this issue Apr 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@soham2008xyz
Copy link

Troubleshooting

  • I have attempted to troubleshoot this already

Describe the bug

While trying to install the package as per the README guidelines, I am receiving the following error:

$ npm i -g wp-local-docker
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup   [
npm WARN cleanup     'C:\\Users\\prama\\AppData\\Roaming\\npm\\node_modules\\wp-local-docker\\node_modules\\js-yaml',
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\prama\AppData\Roaming\npm\node_modules\wp-local-docker\node_modules\js-yaml\node_modules'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: 'C:\\Users\\prama\\AppData\\Roaming\\npm\\node_modules\\wp-local-docker\\node_modules\\js-yaml\\node_modules'
npm WARN cleanup     }
npm WARN cleanup   ],
npm WARN cleanup   [
npm WARN cleanup     'C:\\Users\\prama\\AppData\\Roaming\\npm\\node_modules\\wp-local-docker',
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\prama\AppData\Roaming\npm\node_modules\wp-local-docker\node_modules\cpu-features\deps\cpu_features\cmake'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: 'C:\\Users\\prama\\AppData\\Roaming\\npm\\node_modules\\wp-local-docker\\node_modules\\cpu-features\\deps\\cpu_features\\cmake'
npm WARN cleanup     }
npm WARN cleanup   ],
npm WARN cleanup   [
npm WARN cleanup     'C:\\Users\\prama\\AppData\\Roaming\\npm\\node_modules\\wp-local-docker\\node_modules',
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\prama\AppData\Roaming\npm\node_modules\wp-local-docker\node_modules\cpu-features\build\deps\cpu_features\Release\obj\cpu_features\deps\cpu_features'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: 'C:\\Users\\prama\\AppData\\Roaming\\npm\\node_modules\\wp-local-docker\\node_modules\\cpu-features\\build\\deps\\cpu_features\\Release\\obj\\cpu_features\\deps\\cpu_features'
npm WARN cleanup     }
npm WARN cleanup   ],
npm WARN cleanup   [
npm WARN cleanup     'C:\\Users\\prama\\AppData\\Roaming\\npm\\node_modules\\wp-local-docker\\node_modules\\ssh2',
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\prama\AppData\Roaming\npm\node_modules\wp-local-docker\node_modules\ssh2\lib\protocol'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: 'C:\\Users\\prama\\AppData\\Roaming\\npm\\node_modules\\wp-local-docker\\node_modules\\ssh2\\lib\\protocol'
npm WARN cleanup     }
npm WARN cleanup   ],
npm WARN cleanup   [
npm WARN cleanup     'C:\\Users\\prama\\AppData\\Roaming\\npm\\node_modules\\wp-local-docker\\node_modules\\cpu-features',
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\prama\AppData\Roaming\npm\node_modules\wp-local-docker\node_modules\cpu-features\build\deps\cpu_features\Release\obj\cpu_features\deps'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: 'C:\\Users\\prama\\AppData\\Roaming\\npm\\node_modules\\wp-local-docker\\node_modules\\cpu-features\\build\\deps\\cpu_features\\Release\\obj\\cpu_features\\deps'
npm WARN cleanup     }
npm WARN cleanup   ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path C:\Users\prama\AppData\Roaming\npm\node_modules\wp-local-docker
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c npm run 10updocker postinstall --silent
npm ERR! '.' is not recognized as an internal or external command,
npm ERR! operable program or batch file.

npm ERR! A complete log of this run can be found in: C:\Users\prama\AppData\Local\npm-cache\_logs\2024-04-02T09_55_53_277Z-debug-0.log

Steps to Reproduce

Try to install the NPM package: npm i -g wp-local-docker

Screenshots, screen recording, code snippet

No response

Environment information

$ node --version
v20.11.1
$ npm --version
10.5.0
$ neofetch
        ,.=:!!t3Z3z.,                  prama@Shreya-Acer
       :tt:::tt333EE3                  -----------------
       Et:::ztt33EEEL @Ee.,      ..,   OS: Windows 11 Home Single Language x86_64
      ;tt:::tt333EE7 ;EEEEEEttttt33#   Host: Acer Swift SF314-57
     :Et:::zt333EEQ. $EEEEEttttt33QL   Kernel: 10.0.22631
     it::::tt333EEF @EEEEEEttttt33F    Uptime: 4 days, 21 hours, 2 mins
    ;3=*^```"*4EEV :EEEEEEttttt33@.    Packages: 135 (winget)
    ,.=::::!t=., ` @EEEEEEtttz33QF     Shell: zsh 5.9
   ;::::::::zt33)   "4EEEtttji3P*      Resolution: 1920x1080
  :t::::::::tt33.:Z3z..  `` ,..g.      DE: Aero
  i::::::::zt33F AEEEtttt::::ztF       WM: Explorer
 ;:::::::::t33V ;EEEttttt::::t3        WM Theme: ADMTheme
 E::::::::zt33L @EEEtttt::::z3F        Terminal: Windows Terminal
{3=*^```"*4E3) ;EEEtttt:::::tZ`        CPU: Intel i5-1035G1 (8) @ 1.190GHz
             ` :EEEEtttt::::z7         GPU: Intel(R) UHD Graphics
                 "VEzjt:;;z>*`         Memory: 6849MiB / 7963MiB

Code of Conduct

  • I agree to follow this project's Code of Conduct
@soham2008xyz soham2008xyz added the bug Something isn't working label Apr 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant