【解决】npm ERR A complete log of this run can be found in npm ERR
有一些同学可能想配置react的运行环境,苦于不同的电脑遇到千奇百怪的问题和ERROR。下面是我遇到问题对应的解决方案,希望对你们有帮助。
本来我们的基本步骤是:
下载好nvm文件
在里面下载node.js,就是说安装并且use 14.16.1 ->和16.14.2
其次安装npm即可完成react的环境配置。
就可以开始学习react啦!!!
如果出现nvm安装问题就看下面:
把这两段:
node_mirror: https://npm.taobao.org/mirrors/node/
npm_mirror: https://npm.taobao.org/mirrors/npm/
放进去settings文件
(你在nvm官网安装下来nvm就可以了,在里面有一个settings.txt 文件)
调用npm出现问题
nnpm ERR! Unexpected token ‘.’
npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersLenovoAppDataLocal
pm-cache_logs2-04-24T15_07_28_136Z-debug-0.log
从而导致yarn在vscode中调用出问题
解决:
首先必须打开权限!
要以管理员身份运行
通过get-ExecutionPolicy查看注册表权限是Restricted是受限制的;
权限问题!可以设置:set-executionpolicy remotesigned
关键是这样做了还是不行!@#¥¥%为什么呢,我当时也纳闷,后来经过苦苦摸索。。。
发现有另外一种办法。
在cmd下
install npm v8.1.0nvm use 17.0.0npm i -g yarnnpm i -g yarn
这个时候的npm -v调用看到的是8.7.0
npm i -g cnpm
这个时候回到vscode(或者你自己觉得不错的IDE编辑器下)
美丽且动人的running
后面就是你的react创建和学习了。这里建议用上zarm库一个不错的且美观的组件库调用。
【解决】npm ERR A complete log of this run can be found in npm ERR相关推荐
- npm ERR A complete log of this run can be found in npm ERR CUsersAppDataRoamingnpm-ca
npm ERR! A complete log of this run can be found in: npm ERR! C:Users**AppDataRoaming pm-cache_logs? ...
- npm ERR! cb.apply is not a function npm ERR! A complete log of this run can be found in: npm ERR!
npm ERR! cb.apply is not a function npm ERR! A complete log of this run can be found in: npm ERR! C: ...
- npm ERR! A complete log of this run can be found in:
第一次接触vue项目的时候,拿了别人的代码,安装了依赖包以后一运行,发现有报错 npm ERR! A complete log of this run can be found in: npm ERR ...
- npm 报错 : npm ERR! Maximum call stack size exceeded npm ERR! A complete log of this run can be found
之前,在npm下载包的时候出现一个错误: npm ERR! Maximum call stack size exceeded npm ERR! A complete log of this run c ...
- 运行VUE项目时,出现npm ERR! A complete log of this run can be found in:...报错
运行VUE项目时,出现npm ERR! A complete log of this run can be found in:报错时,分享以下一种解决方案. 本机的 node版本如下 解决方法 1. ...
- 运行vue报错npm ERR! A complete log of this run can be found in解决办法
在这里我们需要清除npm的缓存: (1)在cmd命令行窗口中输入:npm cache clean --force (2)然后再运行我们需要安装模块的命令,输入npm install. 有时是网络问题, ...
- npm 报错 ERR Cannot read properties of null reading ‘package npm ERR A complete log of this run can
通过npm install 安装依赖报如下错误. 解决办法:尝试通过cnpm install 或yarn install 即可解决.
- npm install A complete log of this run can be found in Unexpected end of JSON input while pars时报错
npm install 时报错:如下图所示 这种情况下更新npm就可以 1.npm install npm -g 必须要全局更新 如果还是不行执行下面命令 2.npm cache clean -- ...
- npm报错:A complete log of this run can be fund in
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\用户名\AppData- 解决方法: 删除C:\Users ...
最新文章
- activiti任务TASK
- 时间复杂度和空间复杂度3 - 数据结构和算法05
- Lua table笔记
- 容器源码解析之HashMap(七)
- rabbitmq-发布订阅模式
- 前端直接读取文本文件内容
- winform调用fastreport制作报表(三)绑定数据
- csv文件转为shp文件
- QUEST管径测试仪,非接触式测量系统
- Lena——计算机视觉中的女神被人忽视的部分
- GoLang获取硬盘序列号
- linux脚本每月1日跑一次,Linux crontab 每分钟、每小时、每天、每周、每月、每年定时执行...
- 开博第一天,在日本做开发的日子(生活-吃货篇)
- WF 与 WCF 集成
- 翘首期盼的3D仿真练实操全面开启线上学理论,3D练实操,为您插上考证成功的翅膀
- 逆波兰式 java_Java 实现《编译原理》中间代码生成 -逆波兰式生成与计算 - 程序解析...
- PS平面设计零基础如何学好PS平面设…
- 六字诀教你辨肾脏是否健康
- web前端优化与细节
- 在 jetson nano 上构建 isaac SDK 示例时出错:JetPack43 未在任何 .rc 文件中定义
热门文章
- UCI机器学习数据库的Python API介绍
- 【资源分享】一个超级方便的看电子书方法推荐
- 需要network lightweight filter disk 上的文件netft.sys
- 九月新版【自动赚钱广告机广告阅读收入】新版金多多广告机源代码看广告看新闻赚钱自动钱广告机源代码自动广告阅读收入
- iOS开发之响应式编程RAC
- 智能汽车里究竟“藏”有多少传感器?
- Open Source
- 【1月英语—罗塞塔之爱】
- java_vinson_01:eclipse下载
- 破解ISAPI_Rewrite3.1以及相关知识