Yorkie installation fails which causes Vue CLI to fail
See original GitHub issueVersion
3.2.1
Environment info
Environment Info:
System:
OS: Linux 4.9 Debian GNU/Linux 9 (stretch) 9 (stretch)
CPU: (4) x64 Intel(R) Core(TM) i5-8600K CPU @ 3.60GHz
Binaries:
Node: 11.3.0 - /usr/local/bin/node
Yarn: 1.12.3 - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
Browsers:
Chrome: Not Found
Firefox: Not Found
npmGlobalPackages:
@vue/cli: 3.2.1
Steps to reproduce
vue create myapp
choose “default” setup
(Also tried the manual setup, which doesn’t work either…)
What is expected?
Vue installs successfully
What is actually happening?
yorkie@2.0.0 install /data/denni/Documents/git/cateroo-frontend/what/node_modules/yorkie node bin/install.js
fs.js:122 throw err; ^
Error: EINVAL: invalid argument, open ‘/data/denni/Documents/git/cateroo-frontend/what/node_modules/yorkie/package.json’
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! yorkie@2.0.0 install:
node bin/install.js
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the yorkie@2.0.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Comments
I tried to install yorkie with npm install yorkie
. That fails with the same error message, so it seems it is a problem with yorkie. Why is Vue depending on this? Yorkie doesn’t even have an issues tab on GitHub. Is Vue just using latest available version of dependencies? Seems like a great cause for failure.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:5
- Comments:12
This error (Yorkie@2.0.0) is related to the security attributes of the project-vuejs folder. So, create your projects outside the root / folder, make Linux updates (Ubuntu …) and success to everyone!
Solved issue by using latest node image for container
FROM node:latest