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

node_modules/webp-converter/temp not created at npm install #41

Open
aFagot64 opened this issue May 28, 2021 · 2 comments
Open

node_modules/webp-converter/temp not created at npm install #41

aFagot64 opened this issue May 28, 2021 · 2 comments

Comments

@aFagot64
Copy link

The directory node_modules/webp-converter/temp is requested for performing the conversion, but is not created at npm install.

Complexify installation as the directory temp needs to be created 'by hand' after fresh install.

{ Error: ENOENT: no such file or directory, open '/myProject/node_modules/webp-converter/temp/3d51e039-d615-4569-84b8-ee5f8d73d459.jpg'
at Object.openSync (fs.js:443:3)
at Object.writeFileSync (fs.js:1194:35)
at base64_to_image (/myProject/node_modules/webp-converter/src/buffer_utils.js:30:8)

....

@Givemeurcookies
Copy link

The project has been deprecated by it's author. I intend to maintain the project in my fork https://github.com/Givemeurcookies/promised-webp-converter
Please re-open the issue there and I'll address it when I have time.

@ads05henet
Copy link

in creating my project I created the following lines.

     new Promise((resolve, reject) => {
        fs.access('./node_modules/webp-converter/temp', (errer) => {
          if (errer) {
            fs.mkdirSync('./node_modules/webp-converter/temp')
            resolve()
          }
        })
      })

So I used the image for the container
version node:14-buster-slim

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

3 participants