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

Getting stucked on step 2 #3

Open
Cageofreedom opened this issue May 19, 2019 · 3 comments
Open

Getting stucked on step 2 #3

Cageofreedom opened this issue May 19, 2019 · 3 comments

Comments

@Cageofreedom
Copy link

What should I do after installing?

@Cageofreedom
Copy link
Author

Also, when I tried to install this with yarn it said "package-lock.json" found, whereas I couldn't find it via searching.

@Cageofreedom
Copy link
Author

OK,tried to run through the program and found several problems.
First, the first line will occur a problem of "Unexpected token {",

And I tried another way to occupy,
const {writeFileSync} = requrie('fs'); const {parserParge} = require('@vutex/wapp2md')
and that came on.
`Promise {
,
domain:
Domain {
domain: null,
_events:
[Object: null prototype] {
removeListener: [Function: updateExceptionCapture],
newListener: [Function: updateExceptionCapture],
error: [Function: debugDomainError] },
_eventsCount: 3,
_maxListeners: undefined,
members: [] } }

(node:4640) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'value' of undefined
at parserPage (C:\Program Files\nodejs\node_modules@vutex\wapp2md\dist\page.js:27:54)
(node:4640) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)`
seems that...there's something wrong with the program itself?

@nintha
Copy link
Member

nintha commented May 23, 2019

  1. enter into a empty floder, execute command
npm init

just press Enter, and execute command

npm install @vutex/wapp2md
  1. create new file index.js, and edit it
const { writeFileSync } = require('fs')
const { parserPage } = require('@vutex/wapp2md')
parserPage(5544838611).then($ => { writeFileSync(`${__dirname}/5544838611.md`, $) })

save file and execute command

node index.js
  1. you will find new file 5544838611.md

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

2 participants