cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1364
Views
0
Helpful
0
Replies

Getting Started with Nodejs

c-eshalev
Level 1
Level 1

I am trying to follow the guide on: https://github.com/duosecurity/duo_nodejs/blob/master/README.md

but I am getting this error:
Error: Cannot find module 'duo_web’

All of the “npm install” stages seem to be passing properly.

To make things clear I am using docker.
Here is the entire dockerfile that I use (which results in the above error)

FROM ubuntu:16.04
RUN apt-get update && apt-get install -y  curl nano nodejs git npm

RUN git clone https://github.com/duosecurity/duo_nodejs.git
RUN npm install global @duosecurity/duo_web
WORKDIR duo_nodejs
#checkout specific version on git
RUN git checkout 9e4124c
RUN npm install
run nodejs -e "\
	const duo_web = require('duo_web');\
	duo_web.sign_request(ikey, skey, akey, username);\
"
0 Replies 0
Quick Links