npm 安裝不成功
C:\workspace\imooc>cd lin-cms-vue && npm install
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npm.taobao.org/@nodelib/fs.stat/-/fs.stat-2.0.3.tgz - [not_found] document not found
npm ERR! 404
npm ERR! 404? '@nodelib/fs.stat@https://registry.npm.taobao.org/@nodelib/fs.stat/-/fs.stat-2.0.3.tgz' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR!? ? ?C:\Users\11960\AppData\Local\npm-cache\_logs\2021-03-23T16_12_33_709Z-debug.log
2021-03-24
安裝一個 node 版本切換工具,把 node 版本切換到 12 然后再執行一遍安裝流程
2021-03-25
謝謝!我的qq:? 119604897
2021-03-24
F:\workspace\imooc>node -v
v12.0.0
F:\workspace\imooc>npm -v
6.9.0
F:\workspace\imooc>git clone -b imooc-island https://gitee.com/talelin/lin-cms-vue.git
Cloning into 'lin-cms-vue'...
remote: Enumerating objects: 6110, done.
remote: Counting objects: 100% (6110/6110), done.
remote: Compressing objects: 100% (2617/2617), done.
Rremote: Total 6110 (delta 3547), reused 5455 (delta 3043), pack-reused 0eceiving objects:? 98% (5988/6110), 7.57 MiB |
Receiving objects: 100% (6110/6110), 8.15 MiB | 980.00 KiB/s, done.
Resolving deltas: 100% (3547/3547), done.
F:\workspace\imooc>npm config set registry https://registry.npm.taobao.org
F:\workspace\imooc>npm config set sass_binary_site https://taobao.org/mirrors/node-sass
F:\workspace\imooc>cd lin-cms-vue && npm install
> [email protected] install F:\workspace\imooc\lin-cms-vue\node_modules\yorkie
> node bin/install.js
setting up Git hooks
done
> [email protected] install F:\workspace\imooc\lin-cms-vue\node_modules\node-sass
> node scripts/install.js
Cached binary found at C:\Users\Administrator\AppData\Roaming\npm-cache\node-sass\4.12.0\win32-x64-72_binding.node
> [email protected] postinstall F:\workspace\imooc\lin-cms-vue\node_modules\swiper
> node -e "console.log('\u001b[35m\u001b[1mLove Swiper? Support Vladimir\'s work by donating or pledging on patreon:\u001b[22m\u001b[39m\n > \u001b[32mhttps://patreon.com/vladimirkharlampidi\u001b[0m\n')"
Love Swiper? Support Vladimir's work by donating or pledging on patreon:
?> https://patreon.com/vladimirkharlampidi
> [email protected] postinstall F:\workspace\imooc\lin-cms-vue\node_modules\node-sass
> node scripts/build.js
Binary found at F:\workspace\imooc\lin-cms-vue\node_modules\node-sass\vendor\win32-x64-72\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 1898 packages from 1098 contributors in 354.41s
F:\workspace\imooc\lin-cms-vue>npm run serve
> [email protected] serve F:\workspace\imooc\lin-cms-vue
> node script/plugin-get-config.js && vue-cli-service serve
配置插件...
插件配置完成: F:\workspace\imooc\lin-cms-vue\src\config\stage\plugins.js
?INFO? Starting development server...
?13% building 29/32 modules 3 active ...de_modules\sockjs-client\dist\sockjs.jsBrowserslist: caniuse-lite is outdated. Please run next command `yarn upgrade`
?55 5 98% after emitting CopyPlugin
#
# Fatal error in , line 0
# Check failed: U_SUCCESS(status).
#
#
#
#FailureMessage Object: 00000083036FD380npm ERR! code ELIFECYCLE
npm ERR! errno 3221225477
npm ERR! [email protected] serve: `node script/plugin-get-config.js && vue-cli-service serve`
npm ERR! Exit status 3221225477
npm ERR!
npm ERR! Failed at the [email protected] serve 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\Administrator\AppData\Roaming\npm-cache\_logs\2021-03-24T08_43_36_907Z-debug.log
老師,您好!我卸載本機node后通過nvm安裝了node 12?版本,安裝一直都顯示成功,但一旦npm run serve啟動服務就出錯了,我反復刪除了node_module目錄重新npm install安裝依賴也未顯示錯誤,啟動服務就出現了錯誤。
2021-03-24
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] serve: `node script/plugin-get-config.js && vue-cli-service serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
??這個又是什么錯誤?