npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! chromedriver@2.37.0 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the chromedriver@2.37.0 install 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\poppy\AppData\Roaming\npm-cache\_logs\2022-10-19T08_25_43_985Z-debug.log

然后运行: npm install appium-chromedriver@3.0.1 --ignore-scripts

npm  install appium-chromedriver@3.0.1 --ignore-scripts

然后再次尝试: npm install

E:\...>npm install
npm WARN deprecated uglify-es@3.3.9: support for ECMAScript is superseded by `uglify-js` as of v3.13.0
npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"})
added 176 packages from 15 contributors, removed 2 packages, updated 1 package and moved 4 packages in 12.804s
71 packages are looking for funding
  run `npm fund` for details

解决了npm install问题

然后运行项目 npm run dev

npm run dev

出现了这个错误 To install them, you can run: npm install --save babel-runtime/helpers/slicedToArray babel-runtime/helpers/toConsumableArray

 ERROR  Failed to compile with 2 errors                                                                        下午4:39:46
These dependencies were not found:
* babel-runtime/helpers/slicedToArray in ./src/module-dashboard/store/tagsView.js
* babel-runtime/helpers/toConsumableArray in ./src/module-dashboard/store/tagsView.js
To install them, you can run: npm install --save babel-runtime/helpers/slicedToArray babel-runtime/helpers/toConsumableArray
npm install --save babel-runtime

运行项目: npm run dev
报错: in ./src/components/Breadcrumb/index.vue

 error  in ./src/components/ScrollPane/index.vue
Module build failed: Error: Node Sass does not yet support your current environment: Windows 32-bit with Unsupported runtime (83)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.8.3

说我的Node等级太高了,这个只能在n4.8.3之内
然后去下载node 8.0来试试
传送门
https://nodejs.org/download/release/v8.10.0/

然后运行项目 npm run dev

error  in ./src/module-dashboard/components/layoutNavbar.vue
Module build failed: Error: ENOENT: no such file or directory, scandir
 

npm rebuild node-sass

最后项目运行成功了:

 DONE  Compiled successfully in 12617ms                                                                         17:11:48
 I  Your application is running here: http://localhost:8080
				
在开发过程中,经常会使用npm安装依赖包来加速开发。但是在执行npm install命令时,有时会遇到各种错误。这时,我们需要针对不同的错误进行排查和解决。本篇文章将总结一些常见的npm install报错及解决方案和思路。 1.网络问题 在使用npm install命令时,网络问题可能是最常见的问题。网络问题主要包括以下几种情况: DNS解析失败:这个问题一般是因为本地DNS解析出错,可以通过更换DNS服务器来解决。例如,使用Google的DNS服务器(8.8.8.8和8.8.4.4)。 网络连接超时:这个问题一般是因为网络连接不稳定或者连接速度太慢,可以通过更换网络环境或者设置npm的超时时间来解决。例如,使用npm config set timeout 60000来设置超时时间为60秒。 代理问题:如果你在一个使用代理的网络中,需要配置npm使用代理来下载依赖包。例如,使用npm config set proxy http://proxy-server:port和npm config set https-proxy http://proxy-server:port来设置
首先我们上node.js官网(https://nodejs.org/zh-cn/),下载最新的长期版本,直接运行安装完成之后, 我们就已经具备了node和npm的环境啦。安装完成之后检查下版本信息: Microsoft Windows [版本 10.0.19041.985] (c) Microsoft Corporation。保留所有权利。 C:\Users\Administrator>node -v v14.16.1 C:\Users\Administra npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver 转载于:https://blog.csdn.net/qq_35624642/article/details/79802328
转自 :https://blog.csdn.net/cc18868876837/article/details/81542282 项目拷到本地,然后cd进入项目目录,npm install安装,报错了(①卡住不动 ②unexpected end of file ③ cb() never called等),可以尝试以下方法: 首先确定自己使用的包的下载源是国内的(可以通过npm config lis...
Microsoft Windows [版本 6.1.7601] C:\Users\Administrator>cnpm install esprima -g Downloading esprima to D:\Node.js_Package\node-v12.13.1-win-x64...
查了好久才找到解决办法。 是B站尚硅谷项目底下的大神评论。 https://www.bilibili.com/video/BV1np4y1C7Yf?from=search&seid=16228732195257605915 关于新谷粒P16的前端项目使用npm install报错的问题,首先确保安装了python3.0以上版本,并配置全局变量 其次大部分错误是报node-sass4.9.0安装失败。 执行以下步骤可以完美解决 首先把项目文件夹下的package.json里面的node-sass4.9