travs / markdown-pdf

Convert markdown to pdf, png or jpeg on the fly in Atom
MIT License
263 stars 44 forks source link

Uncaught Error: Cannot find module 'less'Require stack:- $ATOM_HOME/packages\markdown-pdf\lib\a... #244

Open ryl0125 opened 3 years ago

ryl0125 commented 3 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.57.0 x64 Electron: 9.4.4 OS: Unknown Windows version Thrown From: markdown-pdf package 2.3.3

Stack Trace

Uncaught Error: Cannot find module 'less' Require stack:

At internal/modules/cjs/loader.js:800

Error: Cannot find module 'less'
Require stack:
- C:\Users\Administrator\.atom\packages\markdown-pdf\lib\actions\convert.js
- C:\Users\Administrator\.atom\packages\markdown-pdf\lib\markdown-pdf.js
- C:\Users\Administrator\AppData\Local\atom\app-1.57.0\resources\app.asar\static\index.html
    at Module._resolveFilename (internal/modules/cjs/loader.js:797:17)
    at o._resolveFilename (electron/js2c/renderer_init.js:43:689)
    at Function.get_Module._resolveFilename (~/AppData/Local/atom/app-1.57.0/resources/app/static/<embedded>:11:157820)
    at Module.require (/app.asar/static/index.js:61:43)
    at require (~/AppData/Local/atom/app-1.57.0/resources/app/static/<embedded>:11:149153)
    at /packages/markdown-pdf/lib/actions/convert.js:4:20)
    at /packages/markdown-pdf/lib/actions/convert.js:114:2)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.57.0/resources/app/static/<embedded>:11:149837)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.57.0/resources/app/static/<embedded>:11:153385)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Module._load (internal/modules/cjs/loader.js:727:14)
    at Function.Module._load (electron/js2c/asar.js:769:28)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (~/AppData/Local/atom/app-1.57.0/resources/app/static/<embedded>:11:149153)
    at /packages/markdown-pdf/lib/markdown-pdf.js:4:30)
    at /packages/markdown-pdf/lib/markdown-pdf.js:29:2)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.57.0/resources/app/static/<embedded>:11:149837)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.57.0/resources/app/static/<embedded>:11:153385)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Module._load (internal/modules/cjs/loader.js:727:14)
    at Function.Module._load (electron/js2c/asar.js:769:28)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (internal/modules/cjs/helpers.js:74:18)
    at customRequire (~/AppData/Local/atom/app-1.57.0/resources/app/static/<embedded>:1:802772)
    at requireModule (~/AppData/Local/atom/app-1.57.0/resources/app/static/<embedded>:14:1191588)
    at Package.requireMainModule (~/AppData/Local/atom/app-1.57.0/resources/app/static/<embedded>:11:3520819)
    at Package.activateConfig (~/AppData/Local/atom/app-1.57.0/resources/app/static/<embedded>:11:3510107)
    at PackageManager.packageHasSettings (~/AppData/Local/atom/app-1.57.0/resources/app/static/<embedded>:11:907975)
    at PackageCard.hasSettings (~/AppData/Local/atom/app-1.57.0/resources/app/static/<embedded>:14:2725665)
    at PackageCard.updateSettingsState (~/AppData/Local/atom/app-1.57.0/resources/app/static/<embedded>:14:2715933)

Commands

Non-Core Packages

file-icons 2.1.47 
markdown-pdf 2.3.3 
markdown-scroll-sync 2.1.2 
pdf-view 0.73.0