• npm ERR!代码ELIFECYCLE


    报错:

    13 verbose stack Error: speechstudio@1.0.0 local: `prettier --write "./**/*.{tsx,ts,js,html,css,scss}" && webpack-dev-server --hot --config webpack.local.js`
    13 verbose stack Exit status 1
    13 verbose stack     at EventEmitter.<anonymous> (D:AppDataNodejs
    ode_modules
    pm
    ode_modules
    pm-lifecycleindex.js:332:16)
    13 verbose stack     at EventEmitter.emit (events.js:315:20)
    13 verbose stack     at ChildProcess.<anonymous> (D:AppDataNodejs
    ode_modules
    pm
    ode_modules
    pm-lifecyclelibspawn.js:55:14)
    13 verbose stack     at ChildProcess.emit (events.js:315:20)
    13 verbose stack     at maybeClose (internal/child_process.js:1021:16)
    13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
    14 verbose pkgid speechstudio@1.0.0
    15 verbose cwd D:MSworkProjectSpeechServicesPortalsrcSpeechServices.PortalClient
    16 verbose Windows_NT 10.0.18363
    17 verbose argv "D:\AppData\Nodejs\node.exe" "D:\AppData\Nodejs\node_modules\npm\bin\npm-cli.js" "run" "local"
    18 verbose node v12.18.2
    19 verbose npm  v6.14.5
    20 error code ELIFECYCLE
    21 error errno 1
    22 error speechstudio@1.0.0 local: `prettier --write "./**/*.{tsx,ts,js,html,css,scss}" && webpack-dev-server --hot --config webpack.local.js`
    22 error Exit status 1
    23 error Failed at the speechstudio@1.0.0 local script.
    23 error This is probably not a problem with npm. There is likely additional logging output above.
    24 verbose exit [ 1, true ]
    

    解决:
    删除package-lock.json文件重新npm install.
    如果解决不了,可以考虑(这个要慎重,相当于重新install所有,会花很多时间)

    npm cache clean --force
    删除 node_modules 文件夹
    删除 package-lock.json 文件
    npm install
    
  • 相关阅读:
    Tab支持的DHTML Window控件
    仿新浪游戏频道js多栏目全屏下拉菜单导航条
    Jquery实现超酷的时间轴特效
    DIV+CSS专题:第一天 XHTML CSS基础知识
    网站建设:详解网页扁平化设计
    简洁的支持展开关闭的tab标签代码
    JS总结
    codevs 1296 营业额统计 (splay 点操作)
    codeforces gym 100357 H (DP 高精度)
    codeforces gym 100357 K (表达式 模拟)
  • 原文地址:https://www.cnblogs.com/xym4869/p/13366871.html
Copyright © 2020-2023  润新知