Error ebusy resource busy or locked stat c hiberfil sys

I'm new to Node.js and I'm trying to figure out what is wrong with the following code. var fs = require('fs'); var dir = "C:\"; var files = fs.readdirSync(dir); for (var i = 0; i < files.lengt...

I’m new to Node.js and I’m trying to figure out what is wrong with the following code.

var fs = require('fs');
var dir = "C:\";
var files = fs.readdirSync(dir);
for (var i = 0; i < files.length; i++) {
    var name = fs.statSync(dir + files[i]).name;
}

When running this code I get the error:

Error: EBUSY, resource busy or locked 'C:hiberfil.sys'
    at Object.statSync (fs.js:424:18)
    at Object.<anonymous> (S:start.js:7:19)
    at Module._compile (module.js:446:26)
    at Object..js (module.js:464:10)
    at Module.load (module.js:353:31)
    at Function._load (module.js:311:12)
    at Array.0 (module.js:484:10)
    at EventEmitter._tickCallback (node.js:190:38)

tshepang's user avatar

tshepang

11.9k21 gold badges90 silver badges134 bronze badges

asked May 25, 2012 at 1:21

BuddyJoe's user avatar

BuddyJoeBuddyJoe

68.9k113 gold badges290 silver badges461 bronze badges

1

Hiberfil.sys is a system file that holds the hibernation data onto disk, you cannot just read it via normal rights, it’s super confidential since it hold all memory information on disk.

answered May 25, 2012 at 8:08

Mustafa's user avatar

3

After having a similar issue without finding a sufficient answer:

I have fixed it by searching for circular dependencies.

After fixing it, I was able to run everything normally.
enter image description here

answered Apr 11, 2021 at 14:19

matan yemini's user avatar

Содержание

  1. Getting resource busy or locked, lstat ‘C:/hiberfil.sys’ Error after upgrading in Angular 9 #36270
  2. Comments
  3. Ошибка: EBUSY: ресурс занят или заблокирован, rmdir
  4. 18 ответов
  5. Ошибка: EBUSY: ресурс занят или заблокирован, rmdir
  6. Ошибка от chokidar (C:): Ошибка: EBUSY: ресурс занят или заблокирован, lstat ‘C:DumpStack.log.tmp
  7. 31 ответ
  8. Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat ‘C:DumpStack.log.tmp

Getting resource busy or locked, lstat ‘C:/hiberfil.sys’ Error after upgrading in Angular 9 #36270

I am getting locked or busy error while running ng serve , angular 8 working fine, Issue comes when i upgrade angular 9.

Error: EBUSY: resource busy or locked, lstat ‘C:/hiberfil.sys’
at Object.lstatSync (fs.js:923:3)
at NodeJSFileSystem.lstat (C:Angular9-ProjectMRRwebappsrcmainwebappnode_modules@angularcompiler-clisrcngtscfile_systemsrcnode_js_file_system.js:41:72)
at CachedFileSystem.lstat (C:Angular9-ProjectMRRwebappsrcmainwebappnode_modules@angularcompiler-clisrcngtscfile_systemsrccached_file_system.js:131:38)
at C:Angular9-ProjectMRRwebappsrcmainwebappnode_modules@angularcompiler-clingccsrcentry_point_finderdirectory_walker_entry_point_finder.js:102:37
at Array.filter ()
at DirectoryWalkerEntryPointFinder.walkDirectoryForEntryPoints (C:Angular9-ProjectMRRwebappsrcmainwebappnode_modules@angularcompiler-clingccsrcentry_point_finderdirectory_walker_entry_point_finder.js:101:18)
at DirectoryWalkerEntryPointFinder.findEntryPoints (C:Angular9-ProjectMRRwebappsrcmainwebappnode_modules@angularcompiler-clingccsrcentry_point_finderdirectory_walker_entry_point_finder.js:53:44)
at analyzeEntryPoints (C:Angular9-ProjectMRRwebappsrcmainwebappnode_modules@angularcompiler-clingccsrcmain.js:102:41)
at new ClusterMaster (C:Angular9-ProjectMRRwebappsrcmainwebappnode_modules@angularcompiler-clingccsrcexecutionclustermaster.js:40:30)
at C:Angular9-ProjectMRRwebappsrcmainwebappnode_modules@angularcompiler-clingccsrcexecutionclusterexecutor.js:45:46

The text was updated successfully, but these errors were encountered:

Hi @Abhilashtiwari0301 — can you provide some more details about the setup of your project? The idea of this bit of code is that ngcc will walk the file-system looking for Angular libraries to compile. But it should start at the node_modules of your project. In your error message it looks like ngcc is trying to read the C:/hiberfil.sys file. But in normal operation ngcc should never be looking at files in the root of the C: .

hi @petebacondarwin — i am upgraded my app from angular 7 to angular 9 and upgrading to angular 9, not able to ng sreve the project because of the above error, below is the pakage.json

9.0.7″,
«@angular/elements»: «^9.0.7»,
«@angular/forms»: «

9.0.7″,
«@angular/localize»: «^9.0.7»,
«@angular/platform-browser»: «

9.0.7″,
«@fullcalendar/core»: «^4.4.0»,
«@ng-bootstrap/ng-bootstrap»: «^6.0.0»,
«@ng-idle/core»: «^8.0.0-beta.4»,
«@swimlane/ngx-charts»: «^13.0.2»,
«@types/jquery»: «^3.3.33»,
«angular-formio»: «^4.6.12»,
«babel-polyfill»: «^6.26.0»,
«bootstrap»: «4.4.1»,
«chart.js»: «^2.9.3»,
«core-js»: «^2.5.4»,
«date.js»: «^0.3.3»,
«flatpickr»: «4.6.3»,
«font-awesome»: «^4.7.0»,
«jquery»: «^3.2.1»,
«karma»: «^4.4.1»,
«lodash»: «^4.17.11»,
«moment»: «^2.22.2»,
«oidc-client»: «^1.6.1»,
«popper.js»: «^1.16.1»,
«primeicons»: «^2.0.0»,
«primeng»: «^9.0.1»,
«quill»: «^1.3.7»,
«rxjs»: «^6.3.3»,
«rxjs-compat»: «6.3.3»,
«tslib»: «^1.9.0»,
«xml-js»: «^1.6.11»,
«zone.js»: «

0.8.26″
>,
«devDependencies»: <
«@angular-devkit/build-angular»: «

9.0.7″,
«@types/jasmine»: «^3.0.0»,
«@types/jasminewd2»: «^2.0.0»,
«@types/node»: «

8.9.4″,
«codelyzer»: «^5.1.2»,
«jasmine-core»: «^3.0.0»,
«jasmine-spec-reporter»: «

4.2.1″,
«karma»: «^4.0.0»,
«karma-chrome-launcher»: «^3.0.0»,
«karma-cli»: «^2.0.0»,
«karma-coverage-istanbul-reporter»: «

2.0.1″,
«karma-html-reporter»: «^0.2.7»,
«karma-jasmine»: «

1.1.2″,
«karma-jasmine-html-reporter»: «^0.2.2»,
«karma-junit-reporter»: «^1.2.0»,
«node-sass»: «^4.13.1»,
«protractor»: «^5.4.3»,
«ts-node»: «

<
«compileOnSave»: false,
«compilerOptions»: <
«downlevelIteration»: true,
«baseUrl»: «/»,
«outDir»: «./dist/out-tsc»,
«sourceMap»: true,
«declaration»: false,
«module»: «esnext»,
«moduleResolution»: «node»,
«emitDecoratorMetadata»: true,
«experimentalDecorators»: true,
«importHelpers»: true,
«target»: «es2015»,
«typeRoots»: [
«node_modules/@types»
],
«lib»: [
«es2018»,
«dom»
],
«paths»: <
«rxjs»: [
«../WEBAPP/vendor/rxjs.ts»
],
«@app/«: [«app/«],
«os»: [
«src/empty.ts»
],
>,
«types»: [
«node»
]
>
>

please let me know if you required any more information to re-produce or to analyse.
Thank you

Источник

Ошибка: EBUSY: ресурс занят или заблокирован, rmdir

Ошибка возникает после следующих шагов в windows:

  1. Откройте один терминал: npm run start:dev
  2. Откройте другой терминал: ng build —watch

Однако он работает на Mac с использованием приведенных выше команд. Часть конфигурации package.json:

18 ответов

Простой способ решить эту проблему:

  1. Удалите каталог /dist в проекте Nuxt.js.
  2. Снова запустите npm run generate или npm run build .

Мне удалось решить проблему с убийством процессов npm и Java. У меня возникла проблема с запуском моего Android Cordova, поэтому убийство процессов npm и java помогло мне решить эту проблему.

Основная причина, по которой вы видите эту ошибку, связана с тем, что программа блокирует папку по какой-либо причине. Тестирование команды при закрытии программ по одной может помочь решить проблему и позволит узнать, какая программа является причиной.

Одной из проблем, с которыми сталкивались люди, была защита от вредоносных программ в Windows. Вы можете прочитать эту ветку здесь:

В случае, если ссылка перестает работать, это был комментарий, получивший наибольшее количество голосов:

В 64-разрядной ОС Windows 10 я решил эту проблему, удалив программное обеспечение Anti-Malware.

Еще один способ вызвать эту ошибку — запустить npm run [command] при переходе через cd в каталог, который он изменяет. Это случилось со мной, когда я закрыл все программы, и они не работали, но я понял, что нахожусь внутри папки dist , которую нужно удалить и перестроить. Это вызвало ошибку Error: EBUSY: resource busy or locked, rmdir в PowerShell и может воспроизводиться каждый раз.

Источник

Ошибка: EBUSY: ресурс занят или заблокирован, rmdir

Ошибка возникает после следующих шагов в Windows:

  1. Откройте один терминал: npm run start:dev
  2. Откройте другой терминал: ng build —watch

Однако он работает на Mac с помощью приведенных выше команд. Частью конфигурации package.json являются:

Если все вышеперечисленные решения не сработали И вы используете ПК с Windows, как в моем случае, проще всего сделать следующее:

Нажмите клавишу Windows плюс R на клавиатуре, чтобы открыть окно команды запуска, и введите это

нажмите OK , чтобы открыть монитор ресурсов

В мониторе перейдите на вкладку ЦП

В разделе « Связанные дескрипторы » в поле поиска скопируйте путь к нужному файлу или папке и вставьте его туда.

Нажмите на значок поиска

Вы должны увидеть все программы, использующие файл или папку.

щелкните правой кнопкой мыши каждый и завершите процесс

Теперь продолжите то, что вы пытались сделать с файлом или папкой. В моем случае у меня были проблемы с использованием react-create-app через npm . Подробнее здесь #117908

Я просто надеюсь, что это поможет кому-то.

Основная причина, по которой вы видите эту ошибку, связана с тем, что программа по какой-либо причине блокирует папку. Тестирование команды при закрытии программ по одной может помочь решить проблему и определить, какая программа является виновником.

Одна из проблем, с которой сталкивались люди, была с антивирусным ПО в Windows. Вы можете прочитать эту тему здесь:

На случай, если ссылка перестанет работать, вот самый популярный комментарий:

In Windows 10 64-bit OS, I have resolved this issue by uninstalling Anti-Malware software.

Другой способ, которым вы можете вызвать эту ошибку, — это запустить команду npm run [command] while cd’d в каталог, который он изменил. Это случилось со мной, когда я закрыл все программы, и они не работали, но понял, что нахожусь внутри dist папки, которую нужно удалить и восстановить. Это вызвало Error: EBUSY: resource busy or locked, rmdir ошибку в PowerShell и может воспроизводиться каждый раз.

Источник

Ошибка от chokidar (C:): Ошибка: EBUSY: ресурс занят или заблокирован, lstat ‘C:DumpStack.log.tmp

Используя Angular и во время ng serve, я получаю сообщение об ошибке:

31 ответ

Я получаю это всякий раз, когда использую VSCode и добавляю что-то похожее на компонент:

. и я позволил VSCode автоматически импортировать вспомогательный модуль. Вместо добавления EventEmitter к существующим @angular/core , VSCode добавляет новый импорт в protractor что вызывает ошибку.

Если вы получаете эту ошибку и не можете вспомнить, где были внесены последние изменения, попробуйте поискать from ‘protractor’ в вашем коде;

Это также может произойти, когда произошла еще одна ошибка сборки, но сводка не привлекает к ней внимания.

(Между прочим, я вижу, что OP использовал Angular и ng serve; я получаю это в React с помощью npm start. Так что я предполагаю, что это может произойти в VS Code с использованием любой цепочки инструментов.)

Я получал этот вывод в терминале VS Code:

После поиска ответов на этой и других страницах я не нашел ничего, что работало для меня.

Но когда я вернулся в терминал VS Code, я обнаружил эту ошибку:

Это была ошибка регистра при импорте, автоматически добавленном VS Code. Я не знаю почему, но VS Code иногда это делает. Может быть, в этом проекте есть что-то, что поможет VS Code этого не делать. В любом случае, это была ошибка, и как только я исправил ее, изменив «компоненты» на «Компоненты» при импорте, вторичные ошибки, связанные с hiberfil.sys, pagefile.sys и swapfile.sys, исчезли.

Мораль сказки: остерегайтесь сводки сборки, маскирующей ошибки сборки. Каждый раз, когда вы сталкиваетесь со странной ошибкой сборки, сначала прокрутите подробный вывод сборки, чтобы убедиться, что вы преследуете правильную ошибку (исходная ошибка, а не вторичная ошибка, подобная этой).

Источник

Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat ‘C:DumpStack.log.tmp

Using Angular and during ng serve, I’m getting the error:

I get this whenever I’m using VSCode and I add something similar to a component:

. and I let VSCode auto-import the supporting module. Instead of adding EventEmitter to the existing @angular/core , VSCode adds a new import to protractor which causes the error.

If you are getting this error and can’t remember where the last changes were made, try searching for from ‘protractor’ in your code;

This can happen after several different build errors. For some reason the build summary fails to report the original error and reports this instead.

(Incidentally I see the OP was using Angular and ng serve; I’m getting this in React using npm start. So I’m guessing it could happen in VS Code using any toolchain.)

I was getting this output in the VS Code terminal:

After looking for answers on this page and elsewhere, I found nothing that worked for me.

But when I scrolled back in the VS Code terminal, I found this build error:

That was a casing error in an import auto-added by VS Code. I don’t know why but VS Code does that sometimes. Maybe there is something we can tweak in this project to help VS Code not to do that. Anyway, it was an error, and once I fixed it by changing «components» to «Components» in the import, the secondary errors about hiberfil.sys, pagefile.sys and swapfile.sys went away.

The moral of the tale: beware of the build summary masking build errors. Any time you hit a weird build error, first scroll back through the detailed build output to make sure you are chasing the right error (the original error, rather than a secondary error like this one).

check for the missing dependencies in package.json

I am using vue js 😄 I was trying to run a project and I had this error this problem was because the other developer used a global dependencies and it was not included in my node_modules folder

Just write npm install , it is a file viewer that warns that a dependency is not properly updated. Without reading the hidden comment among the thousands I would never have known

If you are using polyfills, this error will occur if you activated the following polyfill (from src/polyfills.ts):

. and did not run the corresponding npm install:

Follow these steps:

  1. Delete the «node_modules» folder
  2. Run npm install
  3. Run npm cache clean

While using @Output(), remove auto imported statement

import < EventEmitter >from ‘protractor’;

and include import EventEmitter from existing

EventEmitter() by default imported by protractor in VS code,

this solves the other issue as well which is expecting 0 arguments and have 1.

I had the same issue and I fixed via setting in package.json

How to insert in package.json

If someone knows its reason that why is it necessary and what happens by adding this then please add some description to make reading more sensible. Thanks

Had this in VueJs (2) — installed a module, then uninstalled it ( npm uninstall ) and forgot to delete the «import » from the .vue file. Silly but there it was.

I had the same error because phpStorm/WebStorm added this import

just remove it and the problem was gone!

I had the same issue. My colleague had installed this dependency and I simply restored packages (right click on package.json — Restore Packages) in packages.json and it seemed to fix it.

I got similar issue when building an ionic application. I had some similar pages and components from other application reused in this one. Once running, I receveived the message [ng] Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat ‘C:pagefile.sys . This was solved by installing a missing library. The error was presented on vscode terminal, a little bit above the message presented on the screen. I felt silly because the error was there since the beginning and I haven´t realized I should have search for it.

Yes, I also had a same error..

SOLUTION

It means there’s some packages are not installed in your node_module . so just run this command .

And then serve again your project !

In my case, I was facing the same issue. What I guess is, this arises due to circular dependency. I used a service that was injected in multiple components and I was retrieving all that components simultaneously. It was throwing error resource busy. . I resolved it by providing service in root instead of multiple lazy loaded modules. May be helpful for someone

I had the same issue today and am using VueJS 3 and VS Code. Somehow my @vue/cli-service was downgraded from 4.5.0 to 3.5.3. No idea how that happened. Anyway, by updating package.json with the following and running npm install after that, it was solved.

I needed to re-install the npm packages that were showing later in the error logs (in my case bootstrap and react-router-dom)

For Vue.js, Check if you have import like this import Vue from «*.vue»; change it to import Vue from «vue»; It was auto imported by VsCode

This bug is related to Babel and it’s preset, I know the screenshot is related to NuxtJS but this npm command solves the problem for Angular as well, since they are using almost the same configuration.

for npm:

for yarn:

  • core-js/core/dict in ./node_modules/babel-loader/lib??ref—2-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/index.vue?vue&type=script&lang=js&

To install it, you can run: npm install —save core-js/core/dict

WARN Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat ‘C:DumpStack.log.tmp’

I got this error while using angular multi-project setup. I was using firebase functions in my project. The cause of my issue was having a source file located under «projects/my-project/src/app/*» import another file located under «projects/my-project/functions/src*» . The functions folder was a sub project folder and had it’s own «node_modules» folder.

SOLUTION

So I searched for all import references under «projects/my-project/functions/src*» containing «/functions/» . I was using Web Storm but most modern IDE’s and text editors like vscode have this capability.

I had the same issue, and my resolution was to change absolute path when including components (added automatically by VS Code), to relative path, and issue gone.

In my case this errors were totally unrelated to chokidar. The build has failed because someone did a commit with errors and before even trying to compile i ran «ng serve» I couldn’t see the errors.

Either scroll up to see the errors or make a «ng build» before serving so you can see what to fix.

The solution for me: There’s a problem with 2 developers installing dependencies in project using npm and yarn. I use yarn, so:

I got this error while install Material UI designs in my react project, and after installing npm package i have no issues now.

Источник

I’m new to Node.js and I’m trying to figure out what is wrong with the following code.

var fs = require('fs');
var dir = "C:\";
var files = fs.readdirSync(dir);
for (var i = 0; i < files.length; i++) {
    var name = fs.statSync(dir + files[i]).name;
}

When running this code I get the error:

Error: EBUSY, resource busy or locked 'C:hiberfil.sys'
    at Object.statSync (fs.js:424:18)
    at Object.<anonymous> (S:start.js:7:19)
    at Module._compile (module.js:446:26)
    at Object..js (module.js:464:10)
    at Module.load (module.js:353:31)
    at Function._load (module.js:311:12)
    at Array.0 (module.js:484:10)
    at EventEmitter._tickCallback (node.js:190:38)

tshepang's user avatar

tshepang

11.9k21 gold badges90 silver badges134 bronze badges

asked May 25, 2012 at 1:21

BuddyJoe's user avatar

BuddyJoeBuddyJoe

68.9k113 gold badges290 silver badges461 bronze badges

1

Hiberfil.sys is a system file that holds the hibernation data onto disk, you cannot just read it via normal rights, it’s super confidential since it hold all memory information on disk.

answered May 25, 2012 at 8:08

Mustafa's user avatar

3

After having a similar issue without finding a sufficient answer:

I have fixed it by searching for circular dependencies.

After fixing it, I was able to run everything normally.
enter image description here

answered Apr 11, 2021 at 14:19

matan yemini's user avatar

I installed react-select-virtualized as mentioned here like the following

    tan@MXL9492NNH MINGW64 /c/tan/projectlens/testing related folders/for_npm_react_virtualized_testing/projectexplorer (develop)
    $ npm install --save react-select-virtualized
    npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
    npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
    npm WARN deprecated core-js@2.6.12: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
    npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
    npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
    npm WARN rm not removing C:tanprojectlenstesting related foldersfor_npm_react_virtualized_testingprojectexplorernode_modules.binuglifyjs.cmd as it wasn't installed by C:tanprojectlenstesting related foldersfor_npm_react_virtualized_testingprojectexplorernode_modulesuglify-js
    npm WARN rm not removing C:tanprojectlenstesting related foldersfor_npm_react_virtualized_testingprojectexplorernode_modules.binuglifyjs as it wasn't installed by C:tanprojectlenstesting related foldersfor_npm_react_virtualized_testingprojectexplorernode_modulesuglify-js
    npm WARN rm not removing C:tanprojectlenstesting related foldersfor_npm_react_virtualized_testingprojectexplorernode_modules.binsemver.cmd as it wasn't installed by C:tanprojectlenstesting related foldersfor_npm_react_virtualized_testingprojectexplorernode_modulessemver
    npm WARN rm not removing C:tanprojectlenstesting related foldersfor_npm_react_virtualized_testingprojectexplorernode_modules.binsemver as it wasn't installed by C:tanprojectlenstesting related foldersfor_npm_react_virtualized_testingprojectexplorernode_modulessemver
    npm WARN rm not removing C:tanprojectlenstesting related foldersfor_npm_react_virtualized_testingprojectexplorernode_modules.binjson5.cmd as it wasn't installed by C:tanprojectlenstesting related foldersfor_npm_react_virtualized_testingprojectexplorernode_modulesjson5
    npm WARN rm not removing C:tanprojectlenstesting related foldersfor_npm_react_virtualized_testingprojectexplorernode_modules.binjson5 as it wasn't installed by C:tanprojectlenstesting related foldersfor_npm_react_virtualized_testingprojectexplorernode_modulesjson5
    
    > u/fortawesome/fontawesome-common-types@0.2.34 postinstall C:tanprojectlenstesting related foldersfor_npm_react_virtualized_testingprojectexplorernode_modules@fortawesomefontawesome-common-types
    > node attribution.js
    
    Font Awesome Free 0.2.34 by u/fontawesome - https://fontawesome.com
    License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
    
    
    > core-js@2.6.12 postinstall C:tanprojectlenstesting related foldersfor_npm_react_virtualized_testingprojectexplorernode_modulescore-js
    > node -e "try{require('./postinstall')}catch(e){}"
    
    Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
    
    The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
    > https://opencollective.com/core-js
    > https://www.patreon.com/zloirock
    
    Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
    
    npm notice created a lockfile as package-lock.json. You should commit this file.
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.1 (node_modules@babelclinode_moduleschokidarnode_modulesfsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_moduleschokidarnode_modulesfsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_moduleschokidarnode_modulesfsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_moduleswatchpack-chokidar2node_moduleschokidarnode_modulesfsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_moduleswebpack-dev-servernode_moduleschokidarnode_modulesfsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
    npm WARN bootstrap@4.6.0 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself.
    npm WARN bootstrap@4.6.0 requires a peer of popper.js@^1.16.1 but none is installed. You must install peer dependencies yourself.
    npm WARN primereact@4.2.2 requires a peer of classnames@^2.2.6 but none is installed. You must install peer dependencies yourself.
    npm WARN react-select-virtualized@3.0.0 requires a peer of react@16.13.1 but none is installed. You must install peer dependencies yourself.
    npm WARN react-select-virtualized@3.0.0 requires a peer of react-dom@16.13.1 but none is installed. You must install peer dependencies yourself.
    npm WARN react-select-virtualized@3.0.0 requires a peer of react-select@4.1.0 but none is installed. You must install peer dependencies yourself.
    npm WARN react-select-virtualized@3.0.0 requires a peer of react-virtualized@9.22.2 but none is installed. You must install peer dependencies yourself.
    npm WARN ldapdemo@0.0.1 No repository field.
    
    + react-select-virtualized@3.0.0
    added 101 packages from 83 contributors, removed 54 packages, updated 1057 packages and audited 1222 packages in 109.002s
    
    53 packages are looking for funding
      run `npm fund` for details
    
    found 3 vulnerabilities (1 moderate, 2 high)
      run `npm audit fix` to fix them, or `npm audit` for details
      

When I started my application like this:

`yarn run local` , it didn’t compile and displayed following error:

    i 「wdm」: Failed to compile.
    Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat 'C:hiberfil.sys'
    Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat 'C:pagefile.sys'
    Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat 'C:swapfile.sys'  

So I deleted the `node_modules` folder and then did `npm install` as mentioned in this post:

It compiled successfully. However, when I included it in my code like the following:

import { Select as SecondSelect } from ‘react-select-virtualized’;

It is again throwing same error:

    Child html-webpack-plugin for "index.html":
         1 asset
        Entrypoint undefined = index.html
           1 module
    i 「wdm」: Failed to compile.
    Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat 'C:hiberfil.sys'
    Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat 'C:pagefile.sys'
    Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat 'C:swapfile.sys'

How to fix this?

This is my package.json

    {
      "name": "ldapdemo",
      "version": "0.0.1",
      "description": "Project Lens",
      "main": "index.js",
      "author": "Tan",
      "license": "MIT",
      "scripts": {
        "local": "webpack-dev-server --env.REACT_APP_ROUTER_BASE= --env.REACT_APP_USERNAME=tan --mode development --inline",
        "dev": "webpack --env.REACT_APP_ROUTER_BASE= --env.REACT_APP_USERNAME=tan --mode development ./src/main/js/app.js --output ./src/main/resources/static/built/bundle.js",
        "build": "webpack --mode production ./src/main/js/app.js ",
        "webpack-prod": "webpack -p --progress --config=config/webpack.prod.js --mode production ./src/main/js/app.js"
      },
      "dependencies": {
        "@babel/plugin-proposal-throw-expressions": "^7.2.0",
        "@emotion/core": "^10.0.27",
        "@fortawesome/fontawesome-svg-core": "^1.2.27",
        "@fortawesome/free-solid-svg-icons": "^5.12.1",
        "@fortawesome/react-fontawesome": "^0.1.9",
        "@material-ui/core": "^4.8.3",
        "@material-ui/icons": "^4.5.1",
        "@material-ui/lab": "^4.0.0-alpha.46",
        "@types/react": "^16.4.2",
        "@types/react-dom": "^16.4.2",
        "@types/react-router-dom": "^4.3.4",
        "@types/styled-jsx": "^2.2.8",
        "awesome-typescript-loader": "^5.2.1",
        "axios": "^0.18.0",
        "babel-plugin-transform-class-properties": "^6.24.1",
        "bootstrap": "^4.1.3",
        "classnames": "^2.2.6",
        "css-loader": "^1.0.0",
        "csstype": "^2.6.8",
        "formik": "^2.1.2",
        "html-loader": "^0.5.5",
        "html-webpack-plugin": "^3.2.0",
        "jqwidgets-scripts": "^7.2.0",
        "lodash": "^4.17.15",
        "primeflex": "^1.1.1",
        "primeicons": "^4.0.0",
        "primereact": "4.2.2",
        "react": "^16.4.2",
        "react-autosuggest": "^9.4.2",
        "react-bootstrap": "^1.0.0-beta.16",
        "react-dom": "^16.4.2",
        "react-filtered-multiselect": "^0.5.1",
        "react-google-charts": "^3.0.15",
        "react-iframe": "^1.8.0",
        "react-json-view": "^1.19.1",
        "react-memoize": "^1.0.1",
        "react-minimal-pie-chart": "^8.0.1",
        "react-router": "^4.3.1",
        "react-router-dom": "^4.3.1",
        "react-select-virtualized": "^3.0.0",
        "react-spinners": "^0.8.0",
        "react-transition-group": "^2.5.3",
        "react-window": "^1.8.5",
        "style-loader": "^0.23.0",
        "styled-components": "^4.2.0",
        "styled-jsx": "^3.2.4",
        "ts-loader": "^6.0.4",
        "typescript": "^3.5.3",
        "webpack-dev-server": "^3.3.1",
        "yup": "^0.27.0"
      },
      "devDependencies": {
        "@babel/cli": "^7.0.0",
        "@babel/core": "^7.0.0",
        "@babel/preset-env": "^7.0.0",
        "@babel/preset-react": "^7.0.0",
        "@babel/preset-typescript": "^7.3.3",
        "@fortawesome/fontawesome-free": "^5.3.1",
        "babel-loader": "^8.0.6",
        "clean-webpack-plugin": "^2.0.1",
        "copy-webpack-plugin": "^5.0.3",
        "file-loader": "^2.0.0",
        "formsy-react": "^1.1.5",
        "mini-css-extract-plugin": "^0.6.0",
        "optimize-css-assets-webpack-plugin": "^5.0.1",
        "react-hot-loader": "^4.8.4",
        "uglifyjs-webpack-plugin": "^2.1.2",
        "webpack": "^4.30.0",
        "webpack-cli": "^3.3.1",
        "webpack-merge": "^4.2.1"
      }
    }

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Error 772 роблокс
  • Error description not available что делать
  • Error 772 roblox
  • Error cs1597 semicolon after method or accessor block is not valid
  • Error 76 unable to uninstall

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии