apostrophecms / apostrophecms/apostrophe

Windows: ENOTEMPTY on startup

Open
#1,978 8 comments 0 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
JavaScript
Stars
4.6k
Forks
650
Avg merge
19h 21m
Merged PRs (30d)
23

Description

please help with fresh installation from apostrophe over windows 10 i keep getting the below error .
after tens of running node appjs or nodemon the project start !!!

E:\node-apostrophe\dvld-intermediate\node_modules\mongodb\lib\utils.js:123
process.nextTick(function() { throw err; });
^

Error: ENOTEMPTY: directory not empty, rmdir 'E:\node-apostrophe\dvld-intermediate\public\modules\apostrophe-images\js'
at Object.rmdirSync (fs.js:680:3)
at rmkidsSync (E:\node-apostrophe\dvld-intermediate\node_modules\rimraf\rimraf.js:356:25)
at rmdirSync (E:\node-apostrophe\dvld-intermediate\node_modules\rimraf\rimraf.js:334:7)
at rimrafSync (E:\node-apostrophe\dvld-intermediate\node_modules\rimraf\rimraf.js:304:9)
at E:\node-apostrophe\dvld-intermediate\node_modules\rimraf\rimraf.js:342:5
at Array.forEach ()
at rmkidsSync (E:\node-apostrophe\dvld-intermediate\node_modules\rimraf\rimraf.js:341:26)
at rmdirSync (E:\node-apostrophe\dvld-intermediate\node_modules\rimraf\rimraf.js:334:7)
at Function.rimrafSync [as sync] (E:\node-apostrophe\dvld-intermediate\node_modules\rimraf\rimraf.js:304:9)
at Object.self.removeThenRecursiveCopy (E:\node-apostrophe\dvld-intermediate\node_modules\apostrophe\lib\modules\apostrophe-assets\index.js:760:18)
at Object.self.linkAssetFolderOnWindows (E:\node-apostrophe\dvld-intermediate\node_modules\apostrophe\lib\modules\apostrophe-assets\index.js:743:19)
at Object.self.linkAssetFolder (E:\node-apostrophe\dvld-intermediate\node_modules\apostrophe\lib\modules\apostrophe-assets\index.js:682:14)
at E:\node-apostrophe\dvld-intermediate\node_modules\apostrophe\lib\modules\apostrophe-assets\index.js:646:14
at E:\node-apostrophe\dvld-intermediate\node_modules\@sailshq\lodash\lib\index.js:3253:15
at baseForOwn (E:\node-apostrophe\dvld-intermediate\node_modules\@sailshq\lodash\lib\index.js:2223:14)
at E:\node-apostrophe\dvld-intermediate\node_modules\@sailshq\lodash\lib\index.js:3223:18

Contributor guide

Open the contributing guide

Research direction

Reproduce the Windows 10 startup failure from the reported fresh installation and trace the asset flow through lib/modules/apostrophe-assets/index.js, especially linkAssetFolder, linkAssetFolderOnWindows, and removeThenRecursiveCopy. Check the interaction with rimraf when removing public/modules/apostrophe-images/js; done means the project starts reliably without the ENOTEMPTY error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.