采用別人寫好的 vue-admin-template 框架。
(https://panjiachen.gitee.io/vue-admin-template)
npm install
報錯: This project has been renamed to 'tasksfile'. Install using 'npm install tasksfile' instead.
原因:github.com 網站無法訪問。
解決方案:
1、長久方案:修改hosts文件
https://www.cnblogs.com/hao-1234-1234/p/12376569.html
2、臨時方案:讓同事把他好的node_modules 文件拷貝一份到你這!
有用的報錯提示部分:
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.13.1/win32-x64-72_binding.node Cannot download "https://github.com/sass/node-sass/releases/download/v4.13.1/win32-x64-72_binding.node": connect ETIMEDOUT 13.229.188.59:443 Timed out whilst downloading the prebuilt binary Hint: If github.com is not accessible in your location try setting a proxy via HTTP_PROXY, e.g. export HTTP_PROXY=http://example.com:1234 or configure npm proxy via npm config set proxy http://example.com:8080
翻譯:
從https://github.com/sass/node-sass/releases/download/v4.13.1/win32-x64-72_binding.node下載二進制文件
無法下載“https://github.com/sass/node sass/releases/download/v4.13.1/win32-x64-72_binding.node”:
連接ETIMEDOUT 13.229.188.59:443
下載預構建二進制文件時超時
提示:如果您所在的位置無法訪問github.com
嘗試通過HTTP_proxy設置代理,例如。
導出HTTP_PROXY=HTTP://example.com:1234
或通過配置npm代理
npm配置集代理http://example.com:8080