Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module 'resolve' #255

Open
yldzmuhammed opened this issue Nov 12, 2018 · 4 comments
Open

Cannot find module 'resolve' #255

yldzmuhammed opened this issue Nov 12, 2018 · 4 comments

Comments

@yldzmuhammed
Copy link

Hello,

I am trying to install on aws server. First i installed npm to the server and then followed instructions;

git clone https://github.com/Freeboard/freeboard.git
cd freeboard
npm install

And then i installed grunt with:

sudo apt install node-grunt-cli
Then i run following command;
grunt

That gives me the following error;

internal/modules/cjs/loader.js:582
throw err;
^
Error: Cannot find module 'resolve'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
at Function.Module._load (internal/modules/cjs/loader.js:506:25)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (/usr/lib/nodejs/grunt-cli/bin/grunt:9:15)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)

What is the solution? What am i missing?

Best regards

@kunaldeo
Copy link

kunaldeo commented Jan 9, 2019

do not use the ubuntu package. Install grunt with npm install -g grunt.

Remove grunt and then do autoremove in ubuntu.

@luccasparoni
Copy link

luccasparoni commented Sep 9, 2019

I'm having the same problem here, did you managed to resolve this?

@luccasparoni
Copy link

I'm having the same problem here, did you managed to resolve this?

A simple npm install fixed it

@ConanZZ
Copy link

ConanZZ commented Oct 12, 2020

I'm having the same problem here, did you managed to resolve this?

A simple npm install fixed it

get

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

No branches or pull requests

4 participants