skanaar / nomnoml

The sassy UML diagram renderer
https://www.nomnoml.com
MIT License
2.7k stars 209 forks source link

Error while `npm run prepare` #110

Closed stolksdorf closed 4 years ago

stolksdorf commented 5 years ago

Trying to build locally and running into this error:

> nomnoml@0.6.1 prepare C:\Dropbox\root\Programming\Javascript\nomnoml                                                
> npm run compile && npm run bundle && npm run test && npm run test_cli && npm run minify && npm run webapp           

> nomnoml@0.6.1 compile C:\Dropbox\root\Programming\Javascript\nomnoml                                                
> cd src && tsc                                                                                                       

> nomnoml@0.6.1 bundle C:\Dropbox\root\Programming\Javascript\nomnoml                                                 
> node build/build.js                                                                                                 

> nomnoml@0.6.1 test C:\Dropbox\root\Programming\Javascript\nomnoml                                                   
> node test/test.js                                                                                                   

> nomnoml@0.6.1 test_cli C:\Dropbox\root\Programming\Javascript\nomnoml                                               
> node dist/nomnoml-cli.js test/import-test.nomnoml test/output.node-test.svg                                         

> nomnoml@0.6.1 minify C:\Dropbox\root\Programming\Javascript\nomnoml                                                 
> uglifyjs dist/nomnoml.web.js -o dist/nomnoml.web.js                                                                 

> nomnoml@0.6.1 webapp C:\Dropbox\root\Programming\Javascript\nomnoml                                                 
> node build/build-icons.js && ( cd webapp && tsc ) && uglifyjs dist/webapp.js -o dist/webapp.js                      

ERROR: ENOENT: no such file or directory, open 'dist/webapp.js'                                                       
    at Object.openSync (fs.js:450:3)                                                                                  
    at Object.readFileSync (fs.js:350:35)                                                                             
    at read_file (C:\Dropbox\root\Programming\Javascript\nomnoml\node_modules\uglify-js\bin\uglifyjs:339:19)          
    at C:\Dropbox\root\Programming\Javascript\nomnoml\node_modules\uglify-js\bin\uglifyjs:165:37                      
    at Array.forEach (<anonymous>)                                                                                    
    at Object.<anonymous> (C:\Dropbox\root\Programming\Javascript\nomnoml\node_modules\uglify-js\bin\uglifyjs:164:31) 
    at Module._compile (internal/modules/cjs/loader.js:721:30)                                                        
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)                                          
    at Module.load (internal/modules/cjs/loader.js:620:32)                                                            
    at tryModuleLoad (internal/modules/cjs/loader.js:560:12)                                                          

I'm on Windows btw, might be the issue?

skanaar commented 5 years ago

Hmm, I am not developing on Windows, but there shouldn't be any problems.

Could you try to change dist/webapp.js to dist\webapp.js on line 26 in package.json? (just guessing here)

dcalsky commented 4 years ago

This problem had been fixed at #118.