Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

Problems with npm run build #21

Closed
afcf23 opened this issue Apr 19, 2017 · 10 comments
Closed

Problems with npm run build #21

afcf23 opened this issue Apr 19, 2017 · 10 comments

Comments

@afcf23
Copy link

afcf23 commented Apr 19, 2017

Hello,
The first command: npm run start it´s working very well but when i make this command : npm run build I have a problems with dist folder.

I send you a image with the problem, bellow:

problem

Can you help me about this?

Best regards,
André Fernandes

@gokulkrishh
Copy link
Member

@afcf23 Understood. Problem is with ugligyjs of decorder.min.js.

Replace the build in package.json with below and run it.

"build": "NODE_ENV=production webpack -p --config webpack.config.js

Uglify is not necessary, since it is already a minified file. I will remove that in next version. Thanks for reporting.

@afcf23
Copy link
Author

afcf23 commented Apr 20, 2017

Hello @gokulkrishh,
Thanks for your feedback.

I made that change in the project, however the command is not generating the dist folder as expected. There is no error logged when I run the command.
So, I believe it might be related to another issue (maybe permissions ?). It shouldn't right?

Please let me know if I can share some image for you to help us to find the solution for this.

Thanks.
André

@gokulkrishh
Copy link
Member

Hey @afcf23,

What is the error you are getting ?? There is no error logged when I run the command. Can you delete the folder and clone and run it again. Because the setup is fairly simple.

@afcf23
Copy link
Author

afcf23 commented Apr 20, 2017

Hello @gokulkrishh,

When I make this command "npm run build" I don't have errors. I see this on output only:

$ npm run build

barcodeScanner@2.0.0 build C:\xampp\htdocs\barcode-scanner
set NODE_ENV=production webpack -p --config webpack.config.js

Thanks,
André

@gokulkrishh
Copy link
Member

@afcf23 So dist folder is not generated ??. May I know which OS you are using and node & npm version. I will try to debug it. THanks

@afcf23
Copy link
Author

afcf23 commented Apr 20, 2017

@gokulkrishh The dist folder was not generated.
OS - Windows 10
Node: v6.10.2
npm: 3.10.10

Thanks

@gokulkrishh
Copy link
Member

@afcf23 Cool. I will check it out and let you know.

@afcf23
Copy link
Author

afcf23 commented Apr 26, 2017

@gokulkrishh Do you have a news for me?

Thanks

@gokulkrishh
Copy link
Member

@afcf23 Hey, ya i checked in windows 10 and all the npm and node path is set properly. Its works just fine for me.

@gokulkrishh
Copy link
Member

@afcf23 Try to set up the node and npm path properly. It will work. Feel free to reopen if you have issue again. Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants