question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Need help: Unable to setup application on windows machine

See original GitHub issue

Hi Team,

I am following Windows setup page to setup eShopOnContainers application on my local machine. while running a command docker-compose build --build-arg RESTORECMD=scripts/restore-packages in step 3 for docker. I am getting an error. I have already installed node-sass using npm install --save-dev --unsafe-perm node-sass command but still, I am getting an error.

Also, I can’t find any npm related prerequisite.

Error:

Step 11/22 : RUN npm run build:prod                                                                                                      
 ---> Running in 9748ef8478a2                                                                                                            
                                                                                                                                         
> eshopaspnetnetcoredockerspa@0.0.0 build:prod /web                                                                                      
> ng build --prod --aot --extract-css                                                                                                    
                                                                                                                                         
                                                                                                                                         
Date: 2019-07-25T07:11:55.453Z                                                                                                           
Hash: 49586ac3a8823132e12c                                                                                                               
Time: 4073ms                                                                                                                             
chunk {0} runtime.26209474bfa8dc87a77c.js (runtime) 1.41 kB [entry] [rendered]                                                           
chunk {1} main.bbf36a77446195e47d4e.js (main) 128 bytes [initial] [rendered]                                                             
chunk {2} polyfills.3cf5ed58d089888df7fa.js (polyfills) 128 bytes [initial] [rendered]                                                   
chunk {3}  (styles) [initial] [rendered]                                                                                                 
                                                                                                                                         
ERROR in ./Client/globals.scss                                                                                                           
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):                                                        
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/lib/loader.js):                                                   
Error: Cannot find module 'node-sass'                                                                                                    
    at Function.Module._resolveFilename (module.js:547:15)                                                                               
    at Function.Module._load (module.js:474:25)                                                                                          
    at Module.require (module.js:596:17)                                                                                                 
    at require (internal/module.js:11:18)                                                                                                
    at Object.sassLoader (/web/node_modules/sass-loader/lib/loader.js:46:72)                                                             
    at runLoaders (/web/node_modules/webpack/lib/NormalModule.js:301:20)                                                                 
    at /web/node_modules/loader-runner/lib/LoaderRunner.js:364:11                                                                        
    at /web/node_modules/loader-runner/lib/LoaderRunner.js:230:18                                                                        
    at runSyncOrAsync (/web/node_modules/loader-runner/lib/LoaderRunner.js:143:3)                                                        
    at iterateNormalLoaders (/web/node_modules/loader-runner/lib/LoaderRunner.js:229:2)                                                  
    at /web/node_modules/loader-runner/lib/LoaderRunner.js:202:4                                                                         
    at VirtualFileSystemDecorator.readFile (/web/node_modules/@ngtools/webpack/src/virtual_file_system_decorator.js:39:13)               
    at processResource (/web/node_modules/loader-runner/lib/LoaderRunner.js:199:11)                                                      
    at iteratePitchingLoaders (/web/node_modules/loader-runner/lib/LoaderRunner.js:158:10)                                               
    at iteratePitchingLoaders (/web/node_modules/loader-runner/lib/LoaderRunner.js:165:10)                                               
    at /web/node_modules/loader-runner/lib/LoaderRunner.js:173:18                                                                        
    at loadLoader (/web/node_modules/loader-runner/lib/loadLoader.js:36:3)                                                               
    at iteratePitchingLoaders (/web/node_modules/loader-runner/lib/LoaderRunner.js:169:2)                                                
    at iteratePitchingLoaders (/web/node_modules/loader-runner/lib/LoaderRunner.js:165:10)                                               
    at /web/node_modules/loader-runner/lib/LoaderRunner.js:173:18                                                                        
    at loadLoader (/web/node_modules/loader-runner/lib/loadLoader.js:36:3)                                                               
    at iteratePitchingLoaders (/web/node_modules/loader-runner/lib/LoaderRunner.js:169:2)                                                
    at iteratePitchingLoaders (/web/node_modules/loader-runner/lib/LoaderRunner.js:165:10)                                               
    at /web/node_modules/loader-runner/lib/LoaderRunner.js:173:18                                                                        
    at loadLoader (/web/node_modules/loader-runner/lib/loadLoader.js:36:3)                                                               
    at iteratePitchingLoaders (/web/node_modules/loader-runner/lib/LoaderRunner.js:169:2)                                                
    at runLoaders (/web/node_modules/loader-runner/lib/LoaderRunner.js:362:2)                                                            
    at NormalModule.doBuild (/web/node_modules/webpack/lib/NormalModule.js:280:3)                                                        
    at NormalModule.build (/web/node_modules/webpack/lib/NormalModule.js:427:15)                                                         
    at Compilation.buildModule (/web/node_modules/webpack/lib/Compilation.js:635:10)                                                     
    at moduleFactory.create (/web/node_modules/webpack/lib/Compilation.js:1021:12)                                                       
    at factory (/web/node_modules/webpack/lib/NormalModuleFactory.js:405:6)                                                              
    at hooks.afterResolve.callAsync (/web/node_modules/webpack/lib/NormalModuleFactory.js:155:13)                                        

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
mvelosopcommented, Aug 9, 2019

oook, well…

You’re on master, please checkout the dev branch, as that’s the default and the one that gets all the pampering here 😉

Hope this helps.

0reactions
mvelosopcommented, Aug 13, 2019

Great! cheers.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I can't install programs in Windows 10
Try installing the app again. ... Close command prompt, restart, then try signing into the Administrator account. Try running the file again.
Read more >
Can't Install Anything on Windows 10: 7 Easy Expert fixes
If you can't install anything on your Windows 10 computer, terminate conflicting programs, check power options, or start critical services.
Read more >
Can't Install Programs on Windows 10? Get It Fixed Now
Fix 1. Restart Your Computer. The first and simplest method for Windows 10 can't install apps is to perform a restart of your...
Read more >
Top 6 Ways to Fix Unable to Install Programs or Software ...
3. Run Program Install and Uninstall Troubleshooter. If the issue remains, you can turn to one of the Windows troubleshooters for help.
Read more >
9 Best Fixes When Can't Install Third-Party Apps on ...
1. Disable Windows S Mode · 2. Check App Compatibility · 3. Enable Third-Party App Installation From Settings · 4. Free Up Storage...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found