采用别人写好的 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