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

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

Closed
matiasvlevi opened this issue Jun 27, 2021 · 6 comments
Closed

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

matiasvlevi opened this issue Jun 27, 2021 · 6 comments

Comments

@matiasvlevi
Copy link
Owner

matiasvlevi commented Jun 27, 2021

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 #22 (comment)

@matiasvlevi matiasvlevi added help wanted Extra attention is needed Priority: High labels Jun 27, 2021
@Labnann
Copy link
Contributor

Labnann commented Jun 27, 2021

I am providing the full screenshot of this occurance.
image

@matiasvlevi
Copy link
Owner Author

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
Copy link
Contributor

Labnann commented Jun 27, 2021

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
Copy link
Owner Author

matiasvlevi commented Jun 27, 2021

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
Copy link
Contributor

Labnann commented Jun 27, 2021

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
Copy link
Owner Author

matiasvlevi commented Jun 27, 2021

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!

@matiasvlevi matiasvlevi removed Priority: High help wanted Extra attention is needed labels Jun 27, 2021
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