Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set up vue js without npm

Tags:

npm

vue.js

How can I set up vue js without npm? I'm not able to install npm right now because of some reasons. Is vue.js enough? What am I missing?

P.S.: I've just started to learn vue.js and I don't want to miss something and struggle after I realize I need something that I can get only with npm.

like image 862
yierstem Avatar asked Aug 26 '17 13:08

yierstem


People also ask

Can I use Vue without npm?

It is possible to create Vue. js application using only inline JavaScript and HTML wihout bundling. It's easy to setup and blazingly fast to develop, very useful for small projects.

Can I use Vue JS without Node?

You need Node. js, since the libraries required for Vue are downloaded using node package manager (npm).

How do I set up Vue app without command line?

You can add Vue functionality to existing project without Vue CLI. Preferably a project using Webpack as bundler...then it is pretty simple. You need 3 packages: vue@next, @vue/compiler-sfc and vue-loader and add some rule configuration in your webpack. config.

Can I install Vue CLI locally?

Installation RecapIt may be a good idea to install the Vue CLI locally so that you can lock the version that you are going to be using.


2 Answers

You could download the source and just include it in a script tag in the index.html.

like image 58
Niles Tanner Avatar answered Oct 24 '22 04:10

Niles Tanner


Have you checked this?

Simply download and include with a script tag. Vue will be registered as a global variable.

You can simply use vuejs by including it directly.

like image 45
choasia Avatar answered Oct 24 '22 04:10

choasia