The instructions for how to install Material Design Icons in a Vuetify app are
$ yarn add #mdi/js -D
// OR
$ npm install #mdi/js -D
The -D flag indicates that the icons should be installed as a devDependency, but I don't understand why given that the icons are needed to run the app itself?
Related
I try to make the vuetify docs available on my mac local.
I followed the steps in this post: https://stackoverflow.com/a/51293026/15037167
cd /tmp/
git clone https://github.com/vuetifyjs/vuetify.git
cd vuetify/packages/docs
yarn
# option 1 - build and serve
yarn build
yarn start
# option 2 - run dev instance
yarn dev
Every thing works until the step "type: yarn dev".
error: Cannot find module '/vue/vuetify/node_modules/vuetify/dist/vuetify.js'. Please verify that the package.json has a valid "main" entry
I already had problems with the step "type yarn" but I solved this with downgrading node like mentioned in the linked post.
Any ideas?
It seem like you have to install vuetify. (Confuse why I need to install vuetify inside vuetify's source code).
Work around:
yarn add #nuxtjs/vuetify -D
# or
npm install #nuxtjs/vuetify -D
I am trying running react-native from last 2 days but I am not able to run anything ,I followed official page for getting started and followed instructions carefully but everytime terminal gives me this error
npm -v 6.9.0
node -v v12.6.0
java -version
openjdk version "1.8.0_212"
these are the versions of requirements i have installed
I copy pasted
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
these inside of .bashrc file in home
can anyone save me please
React Native site has good installation guide for React Native CLI on Linux, but sometimes command npm install -g react-native-cli fails with error
checkPermissions Missing write access to /usr/lib/node_modules
because only root can access directory where NPM install global packages. You might want to run sudo npm install -g react-native-cli but you shouldn`t.
(If you did it, run please:
sudo chown -R $(whoami) ~/.npm
to eliminate consequences).
The most preferred solution will be changing npm’s default directory:
create a directory for global installations:
mkdir ~/.npm-global
Configure npm to use the new directory path:
npm config set prefix '~/.npm-global'
Open ~/.bashrc (or ~/.profile) file and add this line:
export PATH=~/.npm-global/bin:$PATH
On the command line, update your system variables:
source ~/.bashrc
Now you can install react-native-cli globally without using sudo:
npm install -g react-native-cli.
After that react-native init should work.
I git cloned vue, cd'ed into one of the examples folder and ran npm install. Everything went fine, then I ran npm run dev and it gets stuck at this stage. Is there anything else I should do to run this locally?
npm run dev
> vue#2.4.2 dev /vue
> rollup -w -c build/config.js --environment TARGET:web-full-dev
bundling...
bundled in 2456ms. Watching for changes...
You need to run a local web server.
Try this:
Install http-server package with npm:
$ sudo npm install -g http-server
Run it in the root of the vue cloned folder:
$ git clone git#github.com:vuejs/vue.git
$ cd vue
$ http-server -o -c .
In yout browser, navigate to the examples folder, for instance:
http://127.0.0.1:8081/examples/select2/
They are the same from here:
https://v2.vuejs.org/v2/examples/
I'm working on react-native. I recently came across Shoutem UI.
I followed the steps mentioned here. However, I'm getting this error screen. What could be wrong?
NavigationExperimental doesn't exist past React Native v0.43.4, so you probably have v0.44 or higher.
You'll have to edit your package.json's react-native dependency:
"react-native": "^0.43.0"
Afterwards:
$ cd ProjectName
$ rm -rf node_modules //get rid of previous dependencies
$ npm install //install dependencies from package.json
$ react-native link
$ react-native run-android
This solution is from a github issue, from the user dobrienlzd.
Getting a bunch of babel errors when running npm run dev with the Vue cli.
This only happens in Cloud9.
Any thoughts on what could be the issue or how to disable errors like this before running npm run dev?
All babel related it looks like.
I couldn't re-create the babel error messages but it's possible that it could be caused if npm/node is not up-to-date. (Vue-cli wasn't starting dev server before the installation below)
Is your repository public where you're getting the error messages? Then I could have a look at the errors.
If removing node_modules folder is not helping,
here is how you can create a new IDE workspace for vue.js ($ for commands in bash terminal):
Create a blank Ubuntu workspace
Check that nvm is installed & up-to-date with (check version of install script here):
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash
$ nvm install node 6
$ npm i vue-cli -g
$ vue init webpack yourAppName
$ cd yourAppName
$ npm install
$ npm run dev
Click preview to test that Vue server is running as expected
Here is a link to a HelloWorld Vue app in cloud9 ide.
If you have an existing app you can also use git to clone it into your new workspace instead of creating a new app.