第161天學習打卡(穀粒商城 3 安裝powerDesigner軟體 下載nodejs)
阿新 • • 發佈:2021-06-19
下一步:
啟動軟體,沒有提示啟用或輸入 表示啟用成功。
檢視版本資訊進行漢化:
把漢化包檔案中的內容複製到安裝目錄下:然後重啟軟體
參考:
打開個軟體之後建立表可以設定主鍵自增:
如果啟動Linux系統使用docker ps 發現沒有啟動容器可以使用這個命令使它們自動啟動:
sudo docker update redis --restart=always
sudo docker update mysql --restart=always
然後在資料庫中匯入響應的資訊。
在碼雲的人人開源上下載一下兩個檔案:
克隆 renren-fast 和renren-fast-vue
在Git下把這兩個檔案克隆下來
HP@LAPTOP-15MV62CS MINGW64 ~/Desktop
$ git clone https://gitee.com/renrenio/renren-fast.git
HP@LAPTOP-15MV62CS MINGW64 ~/Desktop
$ git clone https://gitee.com/renrenio/renren-fast-vue.git
修改在gulimall1中的renren-fast下的application-dev.yml檔案
啟動renren-fast,然後在瀏覽器頁面訪問
這裡訪問的後臺系統
下載node.js
前端開發,少不了node.js;node,js是一個基於chrom V8引擎的javascrip執行環境。
npm是隨同node.js一起安裝的包管理工具, JavaScript, Java-Maven
1.官網下載node.js並使用node -v檢查版本
2.配置npm使用淘寶映象
npm config set registry http://registry.npm.taobao.org/
官網地址:
各種版本的資訊:
配置映象
把renren-fast-vue直接拖進vscode中
出現的錯誤
PS C:\Users\HP\Desktop\renren-fast-vue> npm install
gyp ERR! configure error
gyp ERR! stack Error: Command failed: D:\ansys18.2\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "<string>", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:308:12)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at maybeClose (internal/child_process.js:1048:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
gyp ERR! System Windows_NT 10.0.19042
gyp ERR! command "D:\\nodejs\\node.exe" "C:\\Users\\HP\\Desktop\\renren-fast-vue\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\Users\HP\Desktop\renren-fast-vue\node_modules\node-sass
gyp ERR! node -v v14.16.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\HP\AppData\Roaming\npm-cache\_logs\2021-06-18T13_25_20_011Z-debug.log
PS C:\Users\HP\Desktop\renren-fast-vue>
解決辦法解除安裝nodejs
在控制面板中解除安裝nodejs,然後下載版本較低的
下載網址:
安裝成功
PS C:\Users\HP\Desktop\renren-fast-vue> npm install
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
> [email protected] install C:\Users\HP\Desktop\renren-fast-vue\node_modules\node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.13.1/win32-x64-64_binding.node
Download complete..] - :
Binary saved to C:\Users\HP\Desktop\renren-fast-vue\node_modules\node-sass\vendor\win32-x64-64\binding.node
Caching binary to C:\Users\HP\AppData\Roaming\npm-cache\node-sass\4.13.1\win32-x64-64_binding.node
> [email protected] postinstall C:\Users\HP\Desktop\renren-fast-vue\node_modules\node-sass
> node scripts/build.js
Binary found at C:\Users\HP\Desktop\renren-fast-vue\node_modules\node-sass\vendor\win32-x64-64\binding.node
Testing binary
Binary is fine
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
added 38 packages from 58 contributors in 28.981s
1 package is looking for funding
run `npm fund` for details
B站學習網址: