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

Installation instructions on VuePress home page don't work #908

Closed
Youdaman opened this issue Oct 6, 2018 · 29 comments
Closed

Installation instructions on VuePress home page don't work #908

Youdaman opened this issue Oct 6, 2018 · 29 comments

Comments

@Youdaman
Copy link

Youdaman commented Oct 6, 2018

Bug report

Version

Steps to reproduce

Follow instructions on home page: https://vuepress.vuejs.org/#as-easy-as-1-2-3

What is expected?

To see a working example.

What is actually happening?

If I install globally (as per the instructions) and try vuepress dev I get:

$ vuepress dev

 WAIT  Extracting site metadata...

 TIP  Temp directory: C:/Users/Youdaman/AppData/Roaming/npm/node_modules/vuepress/node_modules/@vuepress/core/.temp
TypeError: Cannot read property 'endsWith' of null
    at loadTheme (C:\Users\Youdaman\AppData\Roaming\npm\node_modules\vuepress\node_modules\@vuepress\core\lib\prepare\loadTheme.js:51:20)
    at AppContext.resolveTheme (C:\Users\Youdaman\AppData\Roaming\npm\node_modules\vuepress\node_modules\@vuepress\core\lib\prepare\AppContext.js:264:32)
    at AppContext.process (C:\Users\Youdaman\AppData\Roaming\npm\node_modules\vuepress\node_modules\@vuepress\core\lib\prepare\AppContext.js:72:16)
    at prepare (C:\Users\Youdaman\AppData\Roaming\npm\node_modules\vuepress\node_modules\@vuepress\core\lib\prepare\index.js:15:20)
    at dev (C:\Users\Youdaman\AppData\Roaming\npm\node_modules\vuepress\node_modules\@vuepress\core\lib\dev.js:23:25)
    at args (C:\Users\Youdaman\AppData\Roaming\npm\node_modules\vuepress\node_modules\@vuepress\cli\index.js:120:14)
    at Command.program.command.description.option.option.option.option.option.option.action (C:\Users\Youdaman\AppData\Roaming\npm\node_modules\vuepress\node_modules\@vuepress\cli\index.js:50:23)
    at Command.listener (C:\Users\Youdaman\AppData\Roaming\npm\node_modules\vuepress\node_modules\commander\index.js:315:8)
    at Command.emit (events.js:182:13)
    at Command.parseArgs (C:\Users\Youdaman\AppData\Roaming\npm\node_modules\vuepress\node_modules\commander\index.js:654:12)

If I try to install it locally (without -g) and run I get:

$ vuepress dev

 WAIT  Extracting site metadata...

 TIP  Temp directory: C:/Users/Youdaman/AppData/Roaming/npm/node_modules/vuepress/node_modules/@vuepress/core/.temp

 TIP  Apply theme @vuepress/theme-default

 TIP  Apply plugin @vuepress/register-components (i.e. "@vuepress/plugin-register-components") ...

 TIP  Apply plugin @vuepress/active-header-links (i.e. "@vuepress/plugin-active-header-links") ...

 TIP  Apply plugin @vuepress/search (i.e. "@vuepress/plugin-search") ...
WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration.output.path: The provided value "C:/Users/Youdaman/Desktop/vuepress-next-test/.vuepress/dist" is not an absolute path!
   -> The output directory as **absolute path** (required).
    at webpack (C:\Users\Youdaman\AppData\Roaming\npm\node_modules\vuepress\node_modules\webpack\lib\webpack.js:31:9)
    at dev (C:\Users\Youdaman\AppData\Roaming\npm\node_modules\vuepress\node_modules\@vuepress\core\lib\dev.js:95:20)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Other relevant information

  • Your OS: Windows 10
  • Node.js version: v10.7.0
  • Is this a global or local install? Both.
  • Which package manager did you use for the install? npm

I had previously installed vuepress without the @next suffix after reading the instructions in the docs (see https://vuepress.vuejs.org/guide/getting-started.html#global-installation) as per my previous issue here #903 (comment)

I removed the old (0.14 I think) version before installing the new version globally. When I tried installing locally I used vuepress@next as per the instructions on the home page -- easy to miss as they're below the fold and there's a big green button that says "Get Started" which takes you to the stale docs (click "Getting Started" in the sidebar nav after that) that have instructions to install vuepress and not vuepress@next.

@mAKEkr
Copy link
Contributor

mAKEkr commented Oct 6, 2018

this is critical issue of Windows OS users. check #886 Pull Request or self edit @vuepress/core/shared-utils/index.js.

@rchrdnsh
Copy link

rchrdnsh commented Oct 7, 2018

I am getting the same error with vuepress@next v1.0.0-alpha.8 on a MacBook Pro running macOS 10.13.6 after going through steps 1 through 3 on the vuepress home page.

$ vuepress dev

 WAIT  Extracting site metadata...

 TIP  Temp directory: /Users/rchrdnsh/.config/yarn/global/node_modules/@vuepress/core/.temp
TypeError: Cannot read property 'endsWith' of null
    at loadTheme (/Users/rchrdnsh/.config/yarn/global/node_modules/@vuepress/core/lib/prepare/loadTheme.js:51:20)
    at AppContext.resolveTheme (/Users/rchrdnsh/.config/yarn/global/node_modules/@vuepress/core/lib/prepare/AppContext.js:264:32)
    at AppContext.process (/Users/rchrdnsh/.config/yarn/global/node_modules/@vuepress/core/lib/prepare/AppContext.js:72:16)
    at prepare (/Users/rchrdnsh/.config/yarn/global/node_modules/@vuepress/core/lib/prepare/index.js:15:20)
    at dev (/Users/rchrdnsh/.config/yarn/global/node_modules/@vuepress/core/lib/dev.js:23:25)
    at args (/Users/rchrdnsh/.config/yarn/global/node_modules/@vuepress/cli/index.js:120:14)
    at Command.program.command.description.option.option.option.option.option.option.action (/Users/rchrdnsh/.config/yarn/global/node_modules/@vuepress/cli/index.js:50:23)
    at Command.listener (/Users/rchrdnsh/.config/yarn/global/node_modules/commander/index.js:315:8)
    at Command.emit (events.js:182:13)
    at Command.parseArgs (/Users/rchrdnsh/.config/yarn/global/node_modules/commander/index.js:651:12)

so @mAKEkr, it seems that this is happening on macOS as well, at least, for me.

@ekoeryanto
Copy link
Contributor

@Youdaman, @rchrdnsh
I tested on Windows and Ubuntu without this endsWith issue, any repo to reproduce the issue @Youdaman, @rchrdnsh?

@rchrdnsh
Copy link

rchrdnsh commented Oct 7, 2018

hmmm, what do you mean by ‘repo’?

I’m new to building stuff with build processes and dependencies and git, etc.

If you mean the project folder and the files in it, then the only file in the folder is a README.md file with...

# Hello VuePress

in it. I literally just did steps 1 2 and 3 on the VuePress homepage and that is the error I get. This install of macOS is also very fresh, as I just erased my SSD and started from scratch a few days ago, so there probably aren't too many things that could get in the way. I'm trying to think of what could be getting in there and mucking things up, but I don't know.

@ekoeryanto
Copy link
Contributor

Ah I don't read carefully, the issue is for global vuepress installation, local installation just works.

@rchrdnsh
Copy link

rchrdnsh commented Oct 7, 2018

well, the local installation sort of worked for me, but I got a 404 page, rather than the README.md file, so not really, I guess. I think I could make a 'repo' for that one, no?

@ekoeryanto
Copy link
Contributor

ekoeryanto commented Oct 7, 2018

hmmm, what do you mean by ‘repo’?

Git repository with your issue

@rchrdnsh
Copy link

rchrdnsh commented Oct 7, 2018

hmmm...need to learn how to make a git repository then...gimmie a bit...

@ekoeryanto
Copy link
Contributor

ekoeryanto commented Oct 7, 2018

I can confirm the bug, here is the log with --debug argv

 WAIT  Extracting site metadata...

 TIP  Temp directory: /home/whoami/.config/yarn/global/node_modules/@vuepress/core/.temp
{ Error: Cannot find module '@vuepress/theme-default'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
    at resolve (internal/modules/cjs/helpers.js:30:19)
    at exports.resolveModule (/home/whoami/.config/yarn/global/node_modules/@vuepress/shared-utils/lib/module.js:52:18)
    at /home/whoami/.config/yarn/global/node_modules/@vuepress/shared-utils/lib/shortcutPackageResolver.js:79:54
    at loadTheme (/home/whoami/.config/yarn/global/node_modules/@vuepress/core/lib/prepare/loadTheme.js:50:52)
    at AppContext.resolveTheme (/home/whoami/.config/yarn/global/node_modules/@vuepress/core/lib/prepare/AppContext.js:264:32)
    at AppContext.process (/home/whoami/.config/yarn/global/node_modules/@vuepress/core/lib/prepare/AppContext.js:72:16)
    at prepare (/home/whoami/.config/yarn/global/node_modules/@vuepress/core/lib/prepare/index.js:15:20)
    at dev (/home/whoami/.config/yarn/global/node_modules/@vuepress/core/lib/dev.js:23:25)
    at args (/home/whoami/.config/yarn/global/node_modules/@vuepress/cli/index.js:120:14) code: 'MODULE_NOT_FOUND' }
TypeError: Cannot read property 'endsWith' of null
    at loadTheme (/home/whoami/.config/yarn/global/node_modules/@vuepress/core/lib/prepare/loadTheme.js:51:20)
    at AppContext.resolveTheme (/home/whoami/.config/yarn/global/node_modules/@vuepress/core/lib/prepare/AppContext.js:264:32)
    at AppContext.process (/home/whoami/.config/yarn/global/node_modules/@vuepress/core/lib/prepare/AppContext.js:72:16)
    at prepare (/home/whoami/.config/yarn/global/node_modules/@vuepress/core/lib/prepare/index.js:15:20)
    at dev (/home/whoami/.config/yarn/global/node_modules/@vuepress/core/lib/dev.js:23:25)
    at args (/home/whoami/.config/yarn/global/node_modules/@vuepress/cli/index.js:120:14)
    at Command.program.command.description.option.option.option.option.option.option.action (/home/whoami/.config/yarn/global/node_modules/@vuepress/cli/index.js:50:23)
    at Command.listener (/home/whoami/.config/yarn/global/node_modules/commander/index.js:315:8)
    at Command.emit (events.js:182:13)
    at Command.parseArgs (/home/whoami/.config/yarn/global/node_modules/commander/index.js:651:12)

something weird happen in my env, need more time to debug this issue

The issue is on themeResolver currently it works only on local theme.
installing default theme locally and vuepress globally installed work

@rchrdnsh
Copy link

rchrdnsh commented Oct 7, 2018

hmmm...wouldn’t really know how to do that 😶

@ekoeryanto
Copy link
Contributor

@rchrdnsh you can use my starter if you want
https://github.com/ekoeryanto/vuepress-starter/tree/next

@rchrdnsh
Copy link

rchrdnsh commented Oct 8, 2018

argh...just got the same error using your starter @ekoeryanto 😕

screenshot 2018-10-07 18 04 00

my computer just doesn't like VuePress 😔

@ekoeryanto
Copy link
Contributor

@rchrdnsh you can create an issue on the starter,
try to remove the global package first by yarn global remove vuepress or npm -g uninstall vuepress if you use npm

@martinsotirov
Copy link
Contributor

I had endsWith issues as well and the only thing that helped was to uninstall the global npm installed vuepress and to install it again with yarn.

@ulivz
Copy link
Member

ulivz commented Oct 9, 2018

I just installed 1.0.0-alpha.8 globally by npm and yarn respectively, everything looks good to me.

@ulivz
Copy link
Member

ulivz commented Oct 10, 2018

@ekoeryanto What do you want to express with thumbing down?

@rchrdnsh
Copy link

I get this series or warnings when installing vuepress, so I'm wondering if there is any issues with vuepress working because of this series of warnings. Maybe other dependencies are not met properly on my system?

Richards-MacBook-Pro:~ rchrdnsh$ yarn global add vuepress@next 
yarn global v1.10.1
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning "@vue/cli > @vue/cli-ui > graphql-tag@2.10.0" has unmet peer dependency "graphql@^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0".
warning "@vue/cli > @vue/cli-ui > graphql-type-json@0.2.1" has unmet peer dependency "graphql@>=0.8.0".
warning "@vue/cli-service-global > eslint-plugin-vue@4.7.1" has unmet peer dependency "eslint@^3.18.0 || ^4.0.0".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/plugin-proposal-class-properties@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/plugin-proposal-decorators@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/plugin-syntax-dynamic-import@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/plugin-syntax-jsx@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/plugin-transform-runtime@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/cli-plugin-babel > babel-loader@8.0.4" has incorrect peer dependency "@babel/core@^7.0.0".
warning "@vue/cli-service-global > @vue/cli-plugin-babel > babel-loader@8.0.4" has unmet peer dependency "webpack@>=2".
warning "@vue/cli-service-global > @vue/cli-plugin-eslint > eslint-loader@2.1.1" has unmet peer dependency "webpack@>=2.0.0 <5.0.0".
warning "@vue/cli-service-global > eslint-plugin-vue > vue-eslint-parser@2.0.3" has unmet peer dependency "eslint@>=3.9.0".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/plugin-proposal-class-properties > @babel/plugin-syntax-class-properties@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/plugin-proposal-decorators > @babel/plugin-syntax-decorators@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-proposal-async-generator-functions@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-proposal-object-rest-spread@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-proposal-optional-catch-binding@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-proposal-unicode-property-regex@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-syntax-async-generators@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-syntax-object-rest-spread@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-syntax-optional-catch-binding@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-transform-arrow-functions@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-transform-async-to-generator@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-transform-block-scoped-functions@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-transform-block-scoping@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-transform-classes@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-transform-computed-properties@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-transform-destructuring@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-transform-dotall-regex@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-transform-duplicate-keys@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-transform-exponentiation-operator@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-transform-for-of@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-transform-function-name@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-transform-literals@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-transform-modules-amd@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-transform-modules-commonjs@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-transform-modules-systemjs@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-transform-modules-umd@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-transform-new-target@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-transform-object-super@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-transform-parameters@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-transform-regenerator@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-transform-shorthand-properties@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-transform-spread@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-transform-sticky-regex@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-transform-template-literals@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-transform-typeof-symbol@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "@vue/cli-service-global > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-transform-unicode-regex@7.0.0-beta.47" has unmet peer dependency "@babel/core@7.0.0-beta.47".
[4/4] 📃  Building fresh packages...
success Installed "vuepress@1.0.0-alpha.9" with binaries:
      - vuepress
✨  Done in 8.21s.

@stickmy
Copy link
Contributor

stickmy commented Oct 11, 2018

@rchrdnsh Do you use any offical plugins? And maybe you need to install them, some offical plugins dont exist in the vuepress@next version.

@rchrdnsh
Copy link

I’m not using any official VuePress plugins, no. I actually got a local install to work for a little while the other day, then when trying to add a nav in the config it broke and would not render anything to screen. Gonna try and recreate that issue as well and create an issue of it still persists.

@colwilson
Copy link

I'm seeing this today with vuepress@1.0.0-alpha.11

It's a CodeCommit Ubuntu server nodejs:8.11.0

I've seen it with both npm and yarn latest.

LoadTheme related:

WAIT  Extracting site metadata...

 TIP  Temp directory: /usr/local/share/.config/yarn/global/node_modules/@vuepress/core/.temp
TypeError: Cannot read property 'endsWith' of null
    at loadTheme (/usr/local/share/.config/yarn/global/node_modules/@vuepress/core/lib/prepare/loadTheme.js:51:20)
    at AppContext.resolveTheme (/usr/local/share/.config/yarn/global/node_modules/@vuepress/core/lib/prepare

``

@colwilson
Copy link

If it helps, installing non-globally and using npx works:

npm install vuepress@next
npx vuepress build

@PavelPolyakov
Copy link

Well, it's not cool, the bug is 10 days old, I've installed the version which was released 20h ago - but it's still there :'(

@fe3dback
Copy link

fe3dback commented Oct 17, 2018

Same on linux mint 19.
Run in empty folder with contains only README.md with content

# Hello eqweqw

eqw

╰─$ vuepress -V 1 ↵
1.0.0-alpha.12

@martinsotirov
Copy link
Contributor

martinsotirov commented Oct 17, 2018

Currently the global installation seems to be broken but it works if installed locally. You can then start it with:

node_modules/vuepress/vuepress.js dev

... or add it to your package.json file so that you can easily start it with npm or yarn:

{
  "dependencies": {
    "vuepress": "^1.0.0-alpha.12"
  },
  "scripts": {
    "dev": "node_modules/vuepress/vuepress.js dev",
    "build": "node_modules/vuepress/vuepress.js build"
  }
}

@summer1874
Copy link

Currently the global installation seems to be broken but it works if installed locally. You can then start it with:

node_modules/vuepress/vuepress.js dev

... or add it to your package.json file so that you can easily start it with npm or yarn:

{
  "dependencies": {
    "vuepress": "^1.0.0-alpha.12"
  },
  "scripts": {
    "dev": "node_modules/vuepress/vuepress.js dev",
    "build": "node_modules/vuepress/vuepress.js build"
  }
}

This is feasible. thank you :)

"scripts": {
    "docs:dev": "vuepress dev docs",
    "docs:build": "vuepress build docs",
    "d": "bash deploy.sh"
  },
"dependencies": {
    "vuepress": "^1.0.0-alpha.13"
  }

@ulivz ulivz closed this as completed in af80c4b Oct 27, 2018
@ulivz
Copy link
Member

ulivz commented Oct 27, 2018

After some investigation, I found that this issue was caused by introducing monorepo, fixed and release it at 1.0.0-alpha.17.

@bora89
Copy link

bora89 commented Nov 8, 2018

Very strange, but it is still not working even in 1.0.0-alpha.19.

npm -v
6.4.1
node -v
v8.9.0

MacOS: 10.14.1

sudo npm install -g vuepress@next
Password:
/usr/local/bin/vuepress -> /usr/local/lib/node_modules/vuepress/vuepress.js

> fsevents@1.2.4 install /usr/local/lib/node_modules/vuepress/node_modules/fsevents
> node install

[fsevents] Success: "/usr/local/lib/node_modules/vuepress/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
+ vuepress@1.0.0-alpha.19
added 1378 packages from 707 contributors in 82.265s
vuepress dev

 WAIT  Extracting site metadata...

 TIP  Temp directory: /usr/local/lib/node_modules/vuepress/node_modules/@vuepress/core/.temp
Error: Cannot resolve theme @vuepress/default.
    at loadTheme (/usr/local/lib/node_modules/vuepress/node_modules/@vuepress/core/lib/prepare/loadTheme.js:57:13)
    at AppContext.resolveTheme (/usr/local/lib/node_modules/vuepress/node_modules/@vuepress/core/lib/prepare/AppContext.js:280:32)
    at AppContext.process (/usr/local/lib/node_modules/vuepress/node_modules/@vuepress/core/lib/prepare/AppContext.js:77:16)
    at prepare (/usr/local/lib/node_modules/vuepress/node_modules/@vuepress/core/lib/prepare/index.js:15:20)
    at dev (/usr/local/lib/node_modules/vuepress/node_modules/@vuepress/core/lib/dev.js:23:21)
    at args (/usr/local/lib/node_modules/vuepress/node_modules/@vuepress/cli/index.js:120:14)
    at Command.program.command.description.option.option.option.option.option.option.action (/usr/local/lib/node_modules/vuepress/node_modules/@vuepress/cli/index.js:50:23)
    at Command.listener (/usr/local/lib/node_modules/vuepress/node_modules/commander/index.js:315:8)
    at emitTwo (events.js:126:13)
    at Command.emit (events.js:214:7)

@ulivz
Copy link
Member

ulivz commented Nov 9, 2018

@bora89 Try 1.0.0-alpha.20.

@bora89
Copy link

bora89 commented Nov 9, 2018

Thanks @ulivz ! Now it is working

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