新建專案
npm -y init
npm i nrm -d
//設定**源
npm config set registry
//設定公司的源
npm config set registry
//檢視源,可以看到設定過的所有的源
npm config get registry
)安裝完之後可以到 專案目錄/node_modules/.bin 目錄下在cmd中執行nrm ls檢視所選用的倉庫位址
// 使用**的位址
nrm use taobao
// 依賴jquery的包
npm i jquery -s
.\node_modules.bin\webpack .\js\main.js -o .\dist\bundle.js
打完包之後在index.html中右鍵,選擇 open in default browser,不要選擇在live server中
npm i css-loader@4.3.0 style-loader@1.2.1 -d
npm i webpack-dev-server@3.11.0
npm i url-loader@4.1.0 file-loader@4.3.0 -d
npm i vue@2.6.12 -s
(可以在import的時候 from 『./node_modules/vue/dist/vue.min.js』 強制使用,或者使用別名)
npm i vue-router@3.4.3 -s
npm i vue-loader@15.9.3 vue-template-compiler@2.6.12 -d
(vue-loader15版本之後的需要加額外配置)
npm i layui-layer -s
npm i bootstrap3 -s
npm i axios -s
鏈結protobuf遇到的乙個坑,記錄下來備忘一下
libprotobuf fatal google protobuf generated message util.cc 783 check failed scc visit status.load std memory order relaxed sccinfobase krunning termi...
numpy最近用到的幾個實用函式記錄下來
1 np.newaxis 例如 import numpy as np x np.arange 100 x.shape 100,x 50,np.newaxis shape 50,1 x np.newaxis,shape 1,100 2 np.ma.mask numpy.ma模組中提供掩碼陣列的處理,這...
matlab學習中遇到的一些語句(記錄下來)
1 eval expression eval expression 是執行其引數中包含的expression matlab語句。例如 把august1.mat 到august3.mat 載入到matlab workspace for d 1 3 s load august int2str d mat...