当我运行npm install时,我遇到了这样一个问题:
$ npm i
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup [
npm WARN cleanup 'D:\\Progects\\q\\apa-main\\node_modules\\@nx\\next\\node_modules\\@nx\\workspace',
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'D:\Progects\q\apa-main\node_modules\@nx\next\node_modules\@nx\workspace\src\generators\ci-workflow\files'] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: 'EPERM',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'D:\\Progects\\q\\apa-main\\node_modules\\@nx\\next\\node_modules\\@nx\\workspace\\src\\generators\\ci-workflow\\files'
npm WARN cleanup }
npm WARN cleanup ],
npm WARN cleanup [
npm WARN cleanup 'D:\\Progects\\q\\apa-main\\node_modules\\@nx\\webpack',
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'D:\Progects\q\apa-main\node_modules\@nx\webpack\node_modules\@nx\js\src\generators\library\files'] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: 'EPERM',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'D:\\Progects\\q\\apa-main\\node_modules\\@nx\\webpack\\node_modules\\@nx\\js\\src\\generators\\library\\files'
npm WARN cleanup }
npm WARN cleanup ],
npm WARN cleanup [
npm WARN cleanup 'D:\\Progects\\q\\apa-main\\node_modules\\@nx\\next\\node_modules',
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'D:\Progects\q\apa-main\node_modules\@nx\next\node_modules\@nx'] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: 'EPERM',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'D:\\Progects\\q\\apa-main\\node_modules\\@nx\\next\\node_modules\\@nx'
npm WARN cleanup }
npm WARN cleanup ],
npm WARN cleanup [
npm WARN cleanup 'D:\\Progects\\q\\apa-main\\node_modules\\@nx\\webpack',
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'D:\Progects\q\apa-main\node_modules\@nx\webpack\node_modules\@nx\js\src\generators'] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: 'EPERM',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'D:\\Progects\\q\\apa-main\\node_modules\\@nx\\webpack\\node_modules\\@nx\\js\\src\\generators'
npm WARN cleanup }
npm WARN cleanup ],
npm WARN cleanup [
npm WARN cleanup 'D:\\Progects\\q\\apa-main\\node_modules\\@nx\\node',
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'D:\Progects\q\apa-main\node_modules\@nx\node\node_modules'] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: 'EPERM',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'D:\\Progects\\q\\apa-main\\node_modules\\@nx\\node\\node_modules'
npm WARN cleanup }
npm WARN cleanup ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path D:\Progects\q\apa-main\node_modules\nx
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node ./bin/post-install
npm ERR! > NX Missing Platform Dependency
npm ERR!
npm ERR! The Nx CLI could not find or load the native binary for your supported platform (win32-x64).
npm ERR! This likely means that optional dependencies were not installed correctly, or your system is missing some system dependencies.
npm ERR! For more information please see https://nx.dev/recipes/troubleshooting/troubleshoot-nx-install-issues
npm ERR! A complete log of this run can be found in: C:\Users\nnaza\AppData\Local\npm-cache\_logs\2023-10-20T19_48_42_135Z-debug-0.log
字符串
几个小时前,我在我的电脑上安装了一个新的Windows,但在我的另一台电脑上安装了最新版本的Windows 11,一切正常
有人能帮我解决这个问题吗
我试着安装不同版本的node js,改变环境变量,但一点用都没有。
1条答案
按热度按时间x7yiwoj41#
https://learn.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170
如果使用Windows 10,请安装Visual Studio 2015、2017、2019和2022