问题分析:
1.node项目成 功从gitlab拉下来 package.json 右键--show npm scripts 生成运行机制
2.点击运行dev后,爆错如下:
Error running 'start build': Please specify npm or yarn package: cannot find "bin\npm-cli.js" inside "D:\workspace\dc-chain-office-client" directory
解决问题:
找到gitlab拉下来的本地位置,在此路径下cmd窗口,输入npm -v - npm install - npm run dev后
项目会在本地正常跑起来。
本文介绍了如何解决从GitLab拉取的Node.js项目在本地运行时出现的错误。当尝试通过package.json的npm scripts启动dev模式时,系统提示找不到npm-cli.js。解决方法是在项目的本地路径下打开cmd,先检查npm版本,然后执行npm install安装依赖,最后运行npm run dev启动项目,从而成功运行项目。
3227

被折叠的 条评论
为什么被折叠?



