安装 fis3

安装 fis3

1. 安装好 node-v4.6.0 以后,查看版本信息:

# node -v

 2. 安装 fis3

//全局安装
# sudo npm install fis3 -g

 3. 查看版本

# fis3 -v

npm install -g cnpm --registry=https://registry.npm.taobao.org

cnpm是淘宝的npm 镜像
装上cnpm后,以后的npm命令都可以用cnpm代替。
npm是走美国的服务器,经常安装非常慢,有时会很长时间安装不了,或者安装失败。
 
4.安装组件
cd .../fex/
sudo npm install
 5, 安装项目的组件
cd .../fex/newcar-che/develop/trunk
sudo npminstall
 xin@xin-VirtualBox:/var/www$ cd fex/
xin@xin-VirtualBox:/var/www/fex$ ll
总用量 8
drwxrwxr-x  2 xin  xin  4096 12月 12 16:25 ./
drwxrwxrwx 17 root root 4096 12月 12 16:25 ../
xin@xin-VirtualBox:/var/www/fex$ sudo cp -r /mnt/share/fex/newcar-che/ ./
xin@xin-VirtualBox:/var/www/fex$ sudo cp -r /mnt/share/fex/newcar-www/ ./
xin@xin-VirtualBox:/var/www/fex$ node -v
v4.6.0
xin@xin-VirtualBox:/var/www/fex$ fis3 -v

 [INFO] Currently running fis3 (/usr/local/lib/node_modules/.fis3_npminstall/node_modules/.3.4.24@fis3/)

  v3.4.24

   /\\\\\\\\\\\\\\\  /\\\\\\\\\\\     /\\\\\\\\\\\   
   \/\\\///////////  \/////\\\///    /\\\/////////\\\        
    \/\\\                 \/\\\      \//\\\      \///  
     \/\\\\\\\\\\\         \/\\\       \////\\\              
      \/\\\///////          \/\\\          \////\\\          
       \/\\\                 \/\\\             \////\\\      
        \/\\\                 \/\\\      /\\\      \//\\\  
         \/\\\              /\\\\\\\\\\\ \///\\\\\\\\\\\/   
          \///              \///////////    \///////////     

xin@xin-VirtualBox:/var/www/fex$ npm install xin-fe-conf && cd node_modules\xin-fe-conf && npm install
npm WARN package.json fex@ No repository field.
npm WARN package.json fex@ No license field.
npm WARN deprecated [email protected]: use uuid module instead
[email protected] node_modules/xin-fe-conf
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected])
bash: cd: node_modulesxin-fe-conf: 没有那个文件或目录
xin@xin-VirtualBox:/var/www/fex$
xin@xin-VirtualBox:/var/www/fex$
xin@xin-VirtualBox:/var/www/fex$ npm install xin-fe-conf && cd node_modules/xin-fe-conf && npm install
npm WARN package.json fex@ No repository field.
npm WARN package.json fex@ No license field.
npm WARN deprecated [email protected]: use uuid module instead
[email protected] node_modules/xin-fe-conf
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected])
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No license field.
xin@xin-VirtualBox:/var/www/fex/node_modules/xin-fe-conf$ ll
总用量 24
drwxrwxr-x  3 xin xin 4096 12月 12 16:56 ./
drwxrwxr-x  3 xin xin 4096 12月 12 16:56 ../
-rw-rw-r--  1 xin xin 6893 11月 22 11:24 config.js
drwxrwxr-x 12 xin xin 4096 12月 12 16:56 node_modules/
-rw-rw-r--  1 xin xin 1446 12月 12 16:56 package.json
xin@xin-VirtualBox:/var/www/fex/node_modules/xin-fe-conf$ cd ..
xin@xin-VirtualBox:/var/www/fex/node_modules$ ll
总用量 12
drwxrwxr-x 3 xin xin 4096 12月 12 16:56 ./
drwxrwxr-x 6 xin xin 4096 12月 12 16:56 ../
drwxrwxr-x 3 xin xin 4096 12月 12 16:56 xin-fe-conf/
xin@xin-VirtualBox:/var/www/fex/node_modules$ ll
总用量 12
drwxrwxr-x 3 xin xin 4096 12月 12 16:56 ./
drwxrwxr-x 6 xin xin 4096 12月 12 16:56 ../
drwxrwxr-x 3 xin xin 4096 12月 12 16:56 xin-fe-conf/
xin@xin-VirtualBox:/var/www/fex/node_modules$ cd ..
xin@xin-VirtualBox:/var/www/fex$ ll
总用量 32
drwxrwxr-x  6 xin  xin  4096 12月 12 16:56 ./
drwxrwxrwx 17 root root 4096 12月 12 16:25 ../
drwxrwxrwx  8 xin  xin  4096 10月 21 13:59 common/
drwxr-xr-x  6 root root 4096 12月 12 16:26 newcar-che/
drwxr-xr-x  6 root root 4096 12月 12 16:26 newcar-www/
drwxrwxr-x  3 xin  xin  4096 12月 12 16:56 node_modules/
-rwxrwxrwx  1 xin  xin   747 10月 27 11:19 package.json*
-rwxrwxrwx  1 xin  xin  1679 11月 18 21:36 readme.txt*
xin@xin-VirtualBox:/var/www/fex$ sudo npm install
[sudo] xin 的密码:
npm WARN package.json fex@ No repository field.
npm WARN package.json fex@ No license field.
npm WARN deprecated [email protected]: use uuid module instead
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
[email protected] node_modules/fis-prepackager-js-i18n

[email protected] node_modules/fis-prepackager-widget-inline

[email protected] node_modules/fis3-preprocessor-extlang

[email protected] node_modules/fis-parser-bdtmpl
└── [email protected]

[email protected] node_modules/fis-optimizer-smarty-xss
└── [email protected]

[email protected] node_modules/fis-optimizer-html-compress
└── [email protected]

[email protected] node_modules/fis-parser-po
└── [email protected]

[email protected] node_modules/fis-parser-utc
└── [email protected]

[email protected] node_modules/init-mock
└── [email protected]

[email protected] node_modules/fis3-server-smarty-xin
└── [email protected] ([email protected], [email protected], [email protected])

[email protected] node_modules/fis-parser-less
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

[email protected] node_modules/fis3-hook-commonjs
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected])

[email protected] node_modules/rap-node-plugin-xin
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
└── [email protected] ([email protected])

[email protected] node_modules/fis3-parser-babel2-strict
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
xin@xin-VirtualBox:/var/www/fex$ ll
总用量 32
drwxrwxr-x  6 xin  xin  4096 12月 12 16:56 ./
drwxrwxrwx 17 root root 4096 12月 12 16:25 ../
drwxrwxrwx  8 xin  xin  4096 10月 21 13:59 common/
drwxr-xr-x  6 root root 4096 12月 12 16:26 newcar-che/
drwxr-xr-x  6 root root 4096 12月 12 16:26 newcar-www/
drwxrwxr-x 17 xin  xin  4096 12月 12 17:04 node_modules/
-rwxrwxrwx  1 xin  xin   747 10月 27 11:19 package.json*
-rwxrwxrwx  1 xin  xin  1679 11月 18 21:36 readme.txt*
xin@xin-VirtualBox:/var/www/fex$ cd node_modules/
xin@xin-VirtualBox:/var/www/fex/node_modules$ l
fis3-hook-commonjs/         fis3-server-smarty-xin/       fis-parser-bdtmpl/  fis-parser-utc/                 init-mock/
fis3-parser-babel2-strict/  fis-optimizer-html-compress/  fis-parser-less/    fis-prepackager-js-i18n/        rap-node-plugin-xin/
fis3-preprocessor-extlang/  fis-optimizer-smarty-xss/     fis-parser-po/      fis-prepackager-widget-inline/  xin-fe-conf/
xin@xin-VirtualBox:/var/www/fex/node_modules$ ll
总用量 68
drwxrwxr-x 17 xin xin 4096 12月 12 17:04 ./
drwxrwxr-x  6 xin xin 4096 12月 12 16:56 ../
drwxr-xr-x  5 xin xin 4096 12月 12 17:04 fis3-hook-commonjs/
drwxr-xr-x  3 xin xin 4096 12月 12 17:04 fis3-parser-babel2-strict/
drwxr-xr-x  4 xin xin 4096 12月 12 17:04 fis3-preprocessor-extlang/
drwxr-xr-x  4 xin xin 4096 12月 12 17:04 fis3-server-smarty-xin/
drwxr-xr-x  3 xin xin 4096 12月 12 17:04 fis-optimizer-html-compress/
drwxr-xr-x  3 xin xin 4096 12月 12 17:04 fis-optimizer-smarty-xss/
drwxr-xr-x  3 xin xin 4096 12月 12 17:04 fis-parser-bdtmpl/
drwxr-xr-x  3 xin xin 4096 12月 12 17:04 fis-parser-less/
drwxr-xr-x  4 xin xin 4096 12月 12 17:04 fis-parser-po/
drwxr-xr-x  3 xin xin 4096 12月 12 17:04 fis-parser-utc/
drwxr-xr-x  2 xin xin 4096 12月 12 17:04 fis-prepackager-js-i18n/
drwxr-xr-x  3 xin xin 4096 12月 12 17:04 fis-prepackager-widget-inline/
drwxr-xr-x  3 xin xin 4096 12月 12 17:04 init-mock/
drwxr-xr-x  5 xin xin 4096 12月 12 17:04 rap-node-plugin-xin/
drwxrwxr-x  3 xin xin 4096 12月 12 16:56 xin-fe-conf/
xin@xin-VirtualBox:/var/www/fex/node_modules$ cd ..
xin@xin-VirtualBox:/var/www/fex$ ll
总用量 32
drwxrwxr-x  6 xin  xin  4096 12月 12 16:56 ./
drwxrwxrwx 17 root root 4096 12月 12 16:25 ../
drwxrwxrwx  8 xin  xin  4096 10月 21 13:59 common/
drwxr-xr-x  6 root root 4096 12月 12 16:26 newcar-che/
drwxr-xr-x  6 root root 4096 12月 12 16:26 newcar-www/
drwxrwxr-x 17 xin  xin  4096 12月 12 17:04 node_modules/
-rwxrwxrwx  1 xin  xin   747 10月 27 11:19 package.json*
-rwxrwxrwx  1 xin  xin  1679 11月 18 21:36 readme.txt*
xin@xin-VirtualBox:/var/www/fex$ cd newcar-che/
xin@xin-VirtualBox:/var/www/fex/newcar-che$ kk
kk:未找到命令
xin@xin-VirtualBox:/var/www/fex/newcar-che$ ^C
xin@xin-VirtualBox:/var/www/fex/newcar-che$ ll
总用量 24
drwxr-xr-x 6 root root 4096 12月 12 16:26 ./
drwxrwxr-x 6 xin  xin  4096 12月 12 16:56 ../
drwxr-xr-x 2 root root 4096 12月 12 16:26 bug/
drwxr-xr-x 3 root root 4096 12月 12 16:26 develop/
drwxr-xr-x 2 root root 4096 12月 12 16:26 master/
drwxr-xr-x 2 root root 4096 12月 12 16:26 release/
xin@xin-VirtualBox:/var/www/fex/newcar-che$ cd develop/
xin@xin-VirtualBox:/var/www/fex/newcar-che/develop$ ll
总用量 12
drwxr-xr-x  3 root root 4096 12月 12 16:26 ./
drwxr-xr-x  6 root root 4096 12月 12 16:26 ../
drwxr-xr-x 10 root root 4096 12月 12 16:26 trunk/
xin@xin-VirtualBox:/var/www/fex/newcar-che/develop$ cd trunk/
xin@xin-VirtualBox:/var/www/fex/newcar-che/develop/trunk$ ll
总用量 56
drwxr-xr-x 10 root root 4096 12月 12 16:26 ./
drwxr-xr-x  3 root root 4096 12月 12 16:26 ../
drwxr-xr-x  3 root root 4096 12月 12 16:26 che_views/
drwxr-xr-x  2 root root 4096 12月 12 16:26 components/
-rwxr-xr-x  1 root root 3790 12月 12 16:26 fis-conf.js*
-rwxr-xr-x  1 root root  408 12月 12 16:26 package.json*
drwxr-xr-x  2 root root 4096 12月 12 16:26 page/
drwxr-xr-x  2 root root 4096 12月 12 16:26 plugin/
-rwxr-xr-x  1 root root  112 12月 12 16:26 release.bat*
-rwxr-xr-x  1 root root  139 12月 12 16:26 server.conf*
drwxr-xr-x  5 root root 4096 12月 12 16:26 static/
drwxr-xr-x  3 root root 4096 12月 12 16:26 test/
drwxr-xr-x  4 root root 4096 12月 12 16:26 views/
drwxr-xr-x 10 root root 4096 12月 12 16:26 widget/
xin@xin-VirtualBox:/var/www/fex/newcar-che/develop/trunk$ ll
总用量 56
drwxr-xr-x 10 root root 4096 12月 12 16:26 ./
drwxr-xr-x  3 root root 4096 12月 12 16:26 ../
drwxr-xr-x  3 root root 4096 12月 12 16:26 che_views/
drwxr-xr-x  2 root root 4096 12月 12 16:26 components/
-rwxr-xr-x  1 root root 3790 12月 12 16:26 fis-conf.js*
-rwxr-xr-x  1 root root  408 12月 12 16:26 package.json*
drwxr-xr-x  2 root root 4096 12月 12 16:26 page/
drwxr-xr-x  2 root root 4096 12月 12 16:26 plugin/
-rwxr-xr-x  1 root root  112 12月 12 16:26 release.bat*
-rwxr-xr-x  1 root root  139 12月 12 16:26 server.conf*
drwxr-xr-x  5 root root 4096 12月 12 16:26 static/
drwxr-xr-x  3 root root 4096 12月 12 16:26 test/
drwxr-xr-x  4 root root 4096 12月 12 16:26 views/
drwxr-xr-x 10 root root 4096 12月 12 16:26 widget/
xin@xin-VirtualBox:/var/www/fex/newcar-che/develop/trunk$ cd components/
xin@xin-VirtualBox:/var/www/fex/newcar-che/develop/trunk/components$ ll
总用量 8
drwxr-xr-x  2 root root 4096 12月 12 16:26 ./
drwxr-xr-x 10 root root 4096 12月 12 16:26 ../
xin@xin-VirtualBox:/var/www/fex/newcar-che/develop/trunk/components$ cd ..
xin@xin-VirtualBox:/var/www/fex/newcar-che/develop/trunk$ ll
总用量 56
drwxr-xr-x 10 root root 4096 12月 12 16:26 ./
drwxr-xr-x  3 root root 4096 12月 12 16:26 ../
drwxr-xr-x  3 root root 4096 12月 12 16:26 che_views/
drwxr-xr-x  2 root root 4096 12月 12 16:26 components/
-rwxr-xr-x  1 root root 3790 12月 12 16:26 fis-conf.js*
-rwxr-xr-x  1 root root  408 12月 12 16:26 package.json*
drwxr-xr-x  2 root root 4096 12月 12 16:26 page/
drwxr-xr-x  2 root root 4096 12月 12 16:26 plugin/
-rwxr-xr-x  1 root root  112 12月 12 16:26 release.bat*
-rwxr-xr-x  1 root root  139 12月 12 16:26 server.conf*
drwxr-xr-x  5 root root 4096 12月 12 16:26 static/
drwxr-xr-x  3 root root 4096 12月 12 16:26 test/
drwxr-xr-x  4 root root 4096 12月 12 16:26 views/
drwxr-xr-x 10 root root 4096 12月 12 16:26 widget/
xin@xin-VirtualBox:/var/www/fex/newcar-che/develop/trunk$ sudo npm install
npm WARN package.json @ No description
npm WARN package.json @ No repository field.
npm WARN package.json @ No README data
npm WARN package.json @ No license field.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
[email protected] node_modules/fis3-preprocessor-cssspace

[email protected] node_modules/fis3-preprocessor-extlang

[email protected] node_modules/fis-optimizer-html-compress
└── [email protected]

[email protected] node_modules/fis3-hook-commonjs
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected])

[email protected] node_modules/fis3-postprocessor-autoprefixer
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

[email protected] node_modules/fis3-parser-babel2-strict
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
xin@xin-VirtualBox:/var/www/fex/newcar-che/develop/trunk$ ll

猜你喜欢

转载自gxl-ct001.iteye.com/blog/2330355