-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
execution issue after installation using yarn but not npm #102
Comments
I found Can you provide the detailed description? |
Having the same Problem as @mapl and Ferry, log looks similar to Issue #103
|
Hi, |
Looks like this is a Yarn + Windows only issue, not sure if it's a Yarn bug. |
@yyx990803: Sorry that I didn't insert my environment information earlier.
So I think it's not a yarn & windows issue |
@doerne @yyx990803 I’m on windows 10 ( yarn 1.6.0, node 8 and npm 5.6.0 ) |
I'm having the same issue on Fedora 27 (node 8.11.0, yarn 1.5.1 and npm 5.6.0). |
osx 10.13.4
NOTE I uninstalled via yarn global and added via npm -g and it works. |
same |
same issue on ubuntu16.04 gnome3.20.4
but install via npm works |
same issue on macOS High Sierra 10.13.4
|
Can someone confirm that:
|
|
And, FWiW, replacing |
okay, so after looking closer at how npm installs via edit: double checked by altering my global vuepress install config.resolveLoader
.set('symlinks', true)
.modules
// prioritize our own
.add(path.resolve('/Users/dhensche/.nvm/versions/node/v8.9.4/lib/node_modules/vuepress/node_modules/'))
.add('node_modules') so that it pointed at the also, this explains why vuepress installed locally via yarn works (athough the local |
Possible solution (athough I don't know if I am a fan) config.resolveLoader
.set('symlinks', true)
.modules
// assuming vuepress is installed via npm/yarn, this searches the node_modules directory it is installed in
.add(path.resolve(__dirname, '../../..'))
// support running vuepress from a development version
.add(path.resolve(__dirname, '../../node_modules'))
.add('node_modules') |
Mac OS : 10.13.6 I am getting:
|
Ah, on windows yarn is not seeing this file: C:\Users\Your PC User Name Here\AppData\Local\Yarn\bin\create-vuepress-site.cmd |
Open that file directly and it works and creates folder there. Then you copy 😉. |
after installing vuepress globally using yarn (yarn global add vuepress), I'll get an error when running "vupress dev"
ERROR in multi C:/Users/admin/AppData/Local/Yarn/Data/global/node_modules/vuepress/lib/app/clientEntry.js
Module not found: Error: Can't resolve 'buble-loader' in 'C:\dev\vuepress'
@ multi C:/Users/admin/AppData/Local/Yarn/Data/global/node_modules/vuepress/lib/app/clientEntry.js
however using npm, the installation (npm install -g vuepress) and running "vupress dev" works fine
The text was updated successfully, but these errors were encountered: