npm 安装不成功

来源:-

龍寳

2021-03-24 00:17

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


写回答 关注

4回答

  • 沁尘
    2021-03-24 09:01:15
    已采纳

    安装一个 node 版本切换工具,把 node 版本切换到 12 然后再执行一遍安装流程

    慕仔7037...

    老师,我能问下问题吗,qq2192510990,wx:mbmsld

    2022-04-18 13:42:57

    共 1 条回复 >

  • 龍寳
    2021-03-25 15:51:43

    谢谢!我的qq:  119604897

  • 龍寳
    2021-03-24 18:07:49

    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


    > yorkie@2.0.0 install F:\workspace\imooc\lin-cms-vue\node_modules\yorkie

    > node bin/install.js


    setting up Git hooks

    done



    > node-sass@4.12.0 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


    > swiper@4.4.6 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



    > node-sass@4.12.0 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: fsevents@1.2.9 (node_modules\fsevents):

    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: 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


    > lin-cms@0.3.4 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! lin-cms@0.3.4 serve: `node script/plugin-get-config.js && vue-cli-service serve`

    npm ERR! Exit status 3221225477

    npm ERR!

    npm ERR! Failed at the lin-cms@0.3.4 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安装依赖也未显示错误,启动服务就出现了错误。

    http://img3.mukewang.com/605b0f650001408508450381.jpg

    沁尘

    同学你好,你可以留下你的qq,安装一个向日葵远程,我帮你远程看看,这个环境问题我要调试下才知道问题在哪

    2021-03-25 09:10:24

    共 1 条回复 >

  • 龍寳
    2021-03-24 13:54:00

    npm ERR! code ELIFECYCLE

    npm ERR! errno 1

    npm ERR! lin-cms@0.3.4 serve: `node script/plugin-get-config.js && vue-cli-service serve`

    npm ERR! Exit status 1

    npm ERR!

    npm ERR! Failed at the lin-cms@0.3.4 serve script.

    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

     ?这个又是什么错误?

    沁尘

    把 node_module目录删除了再安装依赖,冲突了

    2021-03-24 14:09:11

    共 1 条回复 >

0到1快速构建自己的后台管理系统

开源框架LIN-CMS+NodeJS+Vue 快速构建UI好看+功能便捷的后台管理系统

21448 学习 · 145 问题

查看课程

相似问题