Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can no longer run my ember app locally in Windows 7

I did my first development in a Win7 machine, then switched to a Mac when I got that, which was great due to the speed of building with ember server running. I've been keeping everything in a Git repo. Everything works fine running ember server from my Mac.

Now, when I do a fresh clone from the repo on my Win7 computer, then do npm install and bower install (both of which complete fine), when I run ember server next, I get a bunch of errors saying ENOTEMPTY, directory not empty (path, blah blah blah).

It's complaining about some folder in the tmp directory, which the server command is creating and putting stuff into all by itself, so I don't know what it's complaining about.

I've been finagling with this about 5 different times now, but without success. Ember CLI version is 0.1.1 Ember version is 1.6

Here's an example of one of the errors, but they're all similar (and similarly unhelpful):

ENOTEMPTY, directory not empty 'c:\Dev\star\tmp\remover-tmp_dest_dir-sRc08q1q.tm
p\templates'
Error: ENOTEMPTY, directory not empty 'c:\Dev\star\tmp\remover-tmp_dest_dir-sRc0
8q1q.tmp\templates'
    at Object.fs.rmdirSync (fs.js:623:18)
    at rmkidsSync (c:\Dev\star\node_modules\ember-cli\node_modules\rimraf\rimraf
.js:247:11)
    at rmdirSync (c:\Dev\star\node_modules\ember-cli\node_modules\rimraf\rimraf.
js:237:7)
    at fixWinEPERMSync (c:\Dev\star\node_modules\ember-cli\node_modules\rimraf\r
imraf.js:150:5)
    at Function.rimrafSync [as sync] (c:\Dev\star\node_modules\ember-cli\node_mo
dules\rimraf\rimraf.js:216:26)
    at Remover._remove (c:\Dev\star\node_modules\ember-cli\node_modules\broccoli
-file-remover\index.js:46:10)
    at c:\Dev\star\node_modules\ember-cli\node_modules\broccoli-file-remover\ind
ex.js:60:14
    at Array.forEach (native)
    at c:\Dev\star\node_modules\ember-cli\node_modules\broccoli-file-remover\ind
ex.js:59:12
    at $$$internal$$tryCatch (c:\Dev\star\node_modules\ember-cli\node_modules\rs
vp\dist\rsvp.js:470:16)

file added bootstrap.min.js
file added favicon.ico
file added sb-admin-2.js
like image 316
redOctober13 Avatar asked Sep 30 '22 05:09

redOctober13


People also ask

What is Ember CLI?

Ember CLI, Ember's command line interface, provides a standard project structure, a set of development tools, and an addon system. This allows Ember developers to focus on building apps rather than building the support structures that make them run.

Is Ember a frontend framework?

js vs React is an interesting comparison. Both are popular JavaScript frameworks that are best used for frontend development and for creating attractive user interfaces. The developer community has been highly pleased with these technologies.


1 Answers

Okay, I managed to do something that worked. I had forgotten I needed to disable Windows Indexing on my tmp folder at least (I did it for the whole cloned project):

  1. Windows Key, type "Indexing Options"
  2. Click the drive, then Modify
  3. Uncheck places you don't want indexed (like the tmp folder)
  4. If you use Sublime, go to Perferences --> Settings - User and add the following: "folder_exclude_patterns": [ "tmp/*", ],

Finally, I just had to keep doing ember server, stopping it, and doing it again until it build successfully (took around 5 tries).

like image 167
redOctober13 Avatar answered Oct 04 '22 03:10

redOctober13