Error: Cannot find module 'minimist'

5,268 views
Skip to first unread message

Vahid

unread,
Mar 24, 2018, 9:22:18 PM3/24/18
to taigaio
Hi

i installed latest version of taiga back-front on my ubuntu server (16.04) in production environment and it have this error on taigaevents.stderr file Repeatedly:

Error: Cannot find module 'minimist'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/taiga/taiga-events/index.coffee:2:8)
    at Object.<anonymous> (/home/taiga/taiga-events/index.coffee:1:1)
    at Module._compile (module.js:652:30)
    at Object.exports.run (/usr/lib/node_modules/coffee-script/lib/coffee-script/coffee-script.js:173:23)
    at compileScript (/usr/lib/node_modules/coffee-script/lib/coffee-script/command.js:224:29)
    at compilePath (/usr/lib/node_modules/coffee-script/lib/coffee-script/command.js:174:14)
    at Object.exports.run (/usr/lib/node_modules/coffee-script/lib/coffee-script/command.js:98:20)
    at Object.<anonymous> (/usr/lib/node_modules/coffee-script/bin/coffee:15:45)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Function.Module.runMain (module.js:693:10)
    at startup (bootstrap_node.js:188:16)
    at bootstrap_node.js:609:3

whats cause of this error and how can i solve it?

David Barragán

unread,
Mar 25, 2018, 10:55:22 AM3/25/18
to Vahid, taigaio
Try to install npm modules again

cd taiga-events
npm install

you can force to install minimist too

npm install minimist

And then try to run taiga-evenrts again


Regard

--
Please help us keep the Taiga.io Community open and inclusive, follow our Code of Conduct:
https://github.com/taigaio/code-of-conduct/blob/master/CODE_OF_CONDUCT.md
---
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+unsubscribe@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/taigaio/ecf4a568-1526-48db-954c-2dd9c84669c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

 
David Barragán Merino  
Engineer

www.kaleidos.net/FFF8E7
Message has been deleted

Vahid

unread,
Mar 25, 2018, 12:06:36 PM3/25/18
to taigaio
Hi

Thank you. i run this command and output of it is:

admin@studio:~$ cd /home/taiga/taiga-events
sshadmin@studio
:/home/taiga/taiga-events$ npm install
npm WARN deprecated node
-uuid@1.4.8: Use uuid module instead
npm WARN deprecated gulp
-util@3.0.8: gulp-util is deprecated - replace it, follo                                                                                                                                                             wing the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated graceful
-fs@3.0.11: please upgrade to graceful-fs 4 for comp                                                                                                                                                             atibility with current and future versions of Node.js
npm WARN deprecated minimatch@2
.0.10: Please update to minimatch 3.0.2 or higher                                                                                                                                                              to avoid a RegExp DoS issue
npm WARN deprecated coffee
-script@1.11.1: CoffeeScript on NPM has moved to "coff                                                                                                                                                             eescript" (no hyphen)
npm WARN deprecated minimatch@0
.2.14: Please update to minimatch 3.0.2 or higher                                                                                                                                                              to avoid a RegExp DoS issue
npm WARN deprecated graceful
-fs@1.2.3: please upgrade to graceful-fs 4 for compa                                                                                                                                                             tibility with current and future versions of Node.js
npm WARN checkPermissions
Missing write access to /home/taiga/taiga-events
npm ERR
! path /home/taiga/taiga-events
npm ERR
! code EACCES
npm ERR
! errno -13
npm ERR
! syscall access
npm ERR
! Error: EACCES: permission denied, access '/home/taiga/taiga-events'
npm ERR
!  { Error: EACCES: permission denied, access '/home/taiga/taiga-events'
npm ERR
!   stack: 'Error: EACCES: permission denied, access \'/home/taiga/taiga-                                                                                                                                                             events\'',
npm ERR
!   errno: -13,
npm ERR
!   code: 'EACCES',
npm ERR
!   syscall: 'access',
npm ERR
!   path: '/home/taiga/taiga-events' }
npm ERR
!
npm ERR
! Please try running this command again as root/Administrator.


npm ERR
! A complete log of this run can be found in:
npm ERR
!     /home/sshadmin/.npm/_logs/2018-03-25T15_24_40_933Z-debug.log
admin@studio:/home/taiga/taiga-events$ sudo npm install
npm WARN deprecated node
-uuid@1.4.8: Use uuid module instead
npm WARN deprecated gulp
-util@3.0.8: gulp-util is deprecated - replace it, follo                                                                                                                                                             wing the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated coffee
-script@1.11.1: CoffeeScript on NPM has moved to "coff                                                                                                                                                             eescript" (no hyphen)
npm WARN deprecated graceful
-fs@3.0.11: please upgrade to graceful-fs 4 for comp                                                                                                                                                             atibility with current and future versions of Node.js
npm WARN deprecated minimatch@2
.0.10: Please update to minimatch 3.0.2 or higher                                                                                                                                                              to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0
.2.14: Please update to minimatch 3.0.2 or higher                                                                                                                                                              to avoid a RegExp DoS issue
npm WARN deprecated graceful
-fs@1.2.3: please upgrade to graceful-fs 4 for compa                                                                                                                                                             tibility with current and future versions of Node.js


> nodemon@1.17.2 postinstall /home/taiga/taiga-events/node_modules/nodemon
> node -e "console.log('\u001b[32mLove nodemon? You can now support the project                                                                                                                                                              via the open collective:\u001b[22m\u001b[39m\n > \u001b[96m\u001b[1mhttps://open                                                                                                                                                             collective.com/nodemon/donate\u001b[0m\n')" || exit 0


Love nodemon? You can now support the project via the open collective:
 
> https://opencollective.com/nodemon/donate


npm notice created a lockfile
as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY
: fsevents@1.1.3 (node_modules/fse                                                                                                                                                             vents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY
: Unsupported platform for fsevents@                                                                                                                                                             1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}                                                                                                                                                             )


added
438 packages in 15.888s


i see few warning there. is there ok?

David Barragán

unread,
Mar 26, 2018, 5:30:54 AM3/26/18
to Vahid, taigaio
It seems that you setup taiga-events with root user instead of taiga user.

pm WARN checkPermissions Missing write access to /home/taiga/taiga-events
npm ERR
! path /home/taiga/taiga-events
npm ERR
! code EACCES
npm ERR
! errno -13
npm ERR
! syscall access
npm ERR
! Error: EACCES: permission denied, access '/home/taiga/taiga-events'
npm ERR
!  { Error: EACCES: permission denied, access '/home/taiga/taiga-events'
npm ERR
!   stack: 'Error: EACCES: permission denied, access \'/home/taiga/taiga-                                                                                                                                                             events\'',
npm ERR
!   errno: -13,
npm ERR
!   code: 'EACCES',
npm ERR
!   syscall: 'access',
npm ERR
!   path: '/home/taiga/taiga-events' }
npm ERR
!
npm ERR
! Please try running this command again as root/Administrator.


--
Please help us keep the Taiga.io Community open and inclusive, follow our Code of Conduct:
https://github.com/taigaio/code-of-conduct/blob/master/CODE_OF_CONDUCT.md
---
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+unsubscribe@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Vahid

unread,
Mar 26, 2018, 5:37:00 AM3/26/18
to taigaio
Hi Again,

so i run that command with taiga user:

taiga@studio:~/taiga-events$ sudo npm install
[sudo] password for taiga:

npm WARN optional SKIPPING OPTIONAL DEPENDENCY
: fsevents@1.1.3 (node_modules/fsevents):

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY
: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})


up to date
in 4.828s
taiga@studio
:~/taiga-events$


is it ok now?

On Sunday, March 25, 2018 at 5:52:18 AM UTC+4:30, Vahid wrote:

David Barragán

unread,
Mar 27, 2018, 2:56:38 PM3/27/18
to Vahid, taigaio
I'm so sorry but I don't know because I've never seem this warning message. I don't understand why you setup taiga with root user but in the taiga home user. I recomend you to use the taiga-scripts to get a generic taiga instance running and then try to customize it. 


Regards



On Sun, Mar 25, 2018 at 5:31 PM, Vahid <vahid....@gmail.com> wrote:
Thank you for answer. i run that command:

admin@studio:~$ cd /home/taiga/taiga-events
admin@studio
:/home/taiga/taiga-events$ npm install
npm WARN deprecated node
-uuid@1.4.8: Use uuid module instead
npm WARN deprecated gulp
-util@3.0.8: gulp-util is deprecated - replace it, follo                                                                                                                                                             wing the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN optional SKIPPING OPTIONAL DEPENDENCY
: fsevents@1.1.3 (node_modules/fse                                                                                                                                                             vents):

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY
: Unsupported platform for fsevents@                                                                                                                                                             1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}                                                                                                                                                             )


added
438 packages in 15.888s


is it ok now? i see few warning in result of this command
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+u...@googlegroups.com.

To post to this group, send email to tai...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/taigaio/ecf4a568-1526-48db-954c-2dd9c84669c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

 
David Barragán Merino  
Engineer

www.kaleidos.net/FFF8E7

--
Please help us keep the Taiga.io Community open and inclusive, follow our Code of Conduct:
https://github.com/taigaio/code-of-conduct/blob/master/CODE_OF_CONDUCT.md
---
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+unsubscribe@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Vahid

unread,
Mar 27, 2018, 5:19:38 PM3/27/18
to taigaio
Hi

i repeat it with taiga user:


taiga@studio:~/taiga-events$ sudo npm install

npm WARN optional SKIPPING OPTIONAL DEPENDENCY
: fsevents@1.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY
: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})


up to date
in 4.565s




   
╭─────────────────────────────────────╮
   
                                   
   
  Update available 5.6.0 5.8.0    
   
    Run npm i -g npm to update      
   
                                   
   
╰─────────────────────────────────────╯

also i upgraded npm:

taiga@studio:~/taiga-events$ sudo npm i -g npm
/usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
/usr/bin/npx -> /usr/lib/node_modules/npm/bin/npx-cli.js
+ npm@5.8.0
added
89 packages, removed 42 packages and updated 67 packages in 10.346s


and now i dont see that error on logs of taigaevents.stderr file

On Sunday, March 25, 2018 at 5:52:18 AM UTC+4:30, Vahid wrote:

David Barragán

unread,
Mar 28, 2018, 11:21:59 AM3/28/18
to Vahid, taigaio
Ok, but I don't understand why you use sudo to do npm install

--
Please help us keep the Taiga.io Community open and inclusive, follow our Code of Conduct:
https://github.com/taigaio/code-of-conduct/blob/master/CODE_OF_CONDUCT.md
---
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+unsubscribe@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages