matiasvlevi / Dann

Deep Neural Network Library for JavaScript.
https://dannjs.org
MIT License
425 stars 23 forks source link

[🔺 BUG ]: Grunt error | npm ERR! code ELIFECYCLE errno3 #28

Closed matiasvlevi closed 3 years ago

matiasvlevi commented 3 years ago

We are getting errors with npm run test and npm run build

npm run test: image

npm run build: image

I am not sure why this is happening. I am using node 14.17.1 by the way, in windows.

Originally posted by @Labnann in https://github.com/matiasvlevi/Dann/issues/22#issuecomment-869055913

Labnann commented 3 years ago

I am providing the full screenshot of this occurance. image

matiasvlevi commented 3 years ago

Looks like @babel/core is not installed, I just commited the package.json with it installed. You can install it with npm install @babel/core --save-dev. Let me know if this works.

Labnann commented 3 years ago

I insitalled @babel/core. Then I ran npm run test, I got the same error but with: >> Error: Cannot find module 'mocha' Then I installed mocha: npm install mocha --save-dev. After that it showed: >> Error: Cannot find module 'terser' Warning: Cannot find module 'prettier'

After installing these two: I have this now.

image

matiasvlevi commented 3 years ago

I'm going to add these dependencies in package.json, it must have worked on my computer because of global modules. The error I see in the screenshot is not a dependency issue, its something I just fixed in the gruntfile. I think the new gruntfile I commited should work.

Labnann commented 3 years ago

Nice. npm run test is working now. npm run build was failing with this error: image

However, after running npm run test for the first time, npm run build started working correctly too.

image

I have checked npm run final too. It is working well.

So I think my testing brunch is ok now. I will create a pull request from it for you. You can merge them if you think everything is ok there.

matiasvlevi commented 3 years ago

Perfect! I'll look into the whole test before build thing, this is an error with grunt tasks.

Other than that I'm merging your branch!