forked from alpixel/vue-chuckadmin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
memo.txt
51 lines (29 loc) · 959 Bytes
/
memo.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
=============
=== NPM Permissions : https://docs.npmjs.com/getting-started/fixing-npm-permissions ===
=============
1. (remove /public on DocumentRoot)
sudo nano /etc/apache2/sites-available/000-default.conf
2.
sudo service apahce2 restart
3.
mkdir ~/.npm-global
npm config set prefix '~/.npm-global' && export PATH=~/.npm-global/bin:$PATH && source ~/.profile
4.
mkdir ~/.npm-global/lib && mkdir ~/.npm-global/lib/node_modules && mkdir ~/.npm-global/bin && mkdir ~/.npm-global/share
5.
sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}
6. (in /var/www/) Thanks windows..
sudo npm i --no-bin-links
7. Thanks windows..
sudo npm i -g cross-env webpack webpack-dev-server --save
8.
npm run dev
=============
=== KARMA ===
=============
1.
npm i -g karma-cli phantomjs-prebuilt --save
2.
export PHANTOMJS_BIN=/home/vagrant/.npm-global/lib/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs
3.
npm run test