create-react-app my-app

用管理员运行cmd,问题依然。

打开日志,看到错误详细信息如下

32189 verbose unlock done using C:\Users\feng\AppData\Roaming\npm-cache\_locks\staging-6ca308cbe79bff06.lock for D:\react\my-app\node_modules\.staging
32190 verbose stack Error: EPERM: operation not permitted, unlink 'D:\react\my-app\node_modules\nan\package.json'
32191 verbose cwd D:\react\my-app
32192 verbose Windows_NT 10.0.14393
32193 verbose argv "D:\\Program Files\\nodejs\\node.exe" "C:\\Users\\feng\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save" "--save-exact" "--loglevel" "error" "react" "react-dom" "react-scripts"
32194 verbose node v8.2.1
32195 verbose npm v5.4.1
32196 error path D:\react\my-app\node_modules\nan\package.json
32197 error code EPERM
32198 error errno -4048
32199 error syscall unlink
32200 error Error: EPERM: operation not permitted, unlink 'D:\react\my-app\node_modules\nan\package.json'
32200 error { Error: EPERM: operation not permitted, unlink 'D:\react\my-app\node_modules\nan\package.json'
32200 error stack: 'Error: EPERM: operation not permitted, unlink \'D:\\react\\my-app\\node_modules\\nan\\package.json\'',
32200 error errno: -4048,
32200 error code: 'EPERM',
32200 error syscall: 'unlink',
32200 error path: 'D:\\react\\my-app\\node_modules\\nan\\package.json' }
32201 error Please try running this command again as root/Administrator.
32202 verbose exit [ -4048, true ]

网上找到一个答案 https://stackoverflow.com/questions/46103232/creat-react-app-is-not-installing-in-windows-10

让关闭 Windows Defender,我关闭了再试,还是不行。

又找到一个答案 http://blog.csdn.net/greatbody/article/details/61616555

让单独执行命令:

npm install -g react
npm install -g react-dom
npm install -g react-scripts

然后再创建项目,可是第三个命令我执行失败!

how?

create-react-app创建react项目失败!的更多相关文章

  1. eclipse创建android项目失败的问题 [ android support library ]

    有根筋搭错了,想起来android应用开发???? 放下两年的手机应用开发,昨天有更新了android SDK, 重新搭建开发环境. 这两年android 变化真TM的大............... ...

  2. 【HANA系列】SAP ECLIPSE中创建ABAP项目失败原因解析

    公众号:SAP Technical 本文作者:matinal 原文出处:http://www.cnblogs.com/SAPmatinal/ 原文链接:[HANA系列]SAP ECLIPSE中创建AB ...

  3. Eclipse中创建Maven项目失败

    Eclipse中创建Maven项目报错:Unable to create project from archetype org.apache.maven.archetypes:maven-archet ...

  4. Visual studio 创建通用项目失败vstemplate

    Visual studio 创建项目失败 提示 the vstemplate file references the wizard class 'Microsoft.VisualStudio.WinR ...

  5. cocos2d-x3.2创建新项目失败的一种可能性(cygwin自带的python2.6被抢先执行)

    之前一直使用cocos2d-x2.2写游戏,写了几个游戏后,想尝试下3.x版本的新功能,就下载了cocos2d-x3.2版本. 参照官方文档的说法,cocos2d-x3.x版本需要python2.7环 ...

  6. eclipse 创建maven项目失败

    问题描述: eclipse 初次创建maven项目报错 可能是maven-archetype-quickstart:1.1.jar 包失效了或者没有? 有人说把这个jar包放在maven本地仓库里 我 ...

  7. 利用 Create React Native App 创建 React Native 应用

    $ npm i -g create-react-native-app $ create-react-native-app my-project $ cd my-project $ npm start

  8. Android Studio打开React Native创建的项目

    1.点击 Import project 2.找到项目下android文件夹,选择build.gradle文件,open

  9. vs 2019 create new project 创建新项目

    下面的place solution and project in the same directory 不需要勾选

  10. react初探索--react + react-router + ant-design 后台管理系统配置

    首先确认安装了node环境,Node >= 6. 如果对react 及 ant-design 一无所知,建议去阅读下api文档,react 可以在 codePen 在线练习. react Api ...

随机推荐

  1. 【LeetCode OJ】Remove Nth Node From End of List

    题目:Given a linked list, remove the nth node from the end of list and return its head. For example: G ...

  2. PHP一致性哈希实现。。

    <?php /** *@author:xiaojiang 20140222 * 一致性哈希php 实现 */ class MyHash{ //虚拟节点数 private $_virtualCou ...

  3. IOS设计模式第四篇之装饰设计模式的类别设计模式

    装饰设计模式 装饰设计模式动态的添加行为和责任向一个对象而不修改他的任何代码.他是你子类化修改类的行为用通过另一个对象的包装的代替方法. 在Objective-c里面有很多这种设计模式的实现,像cat ...

  4. 【架构师之路】Nginx负载均衡与反向代理—《亿级流量网站架构核心技术》

    本篇摘自<亿级流量网站架构核心技术>第二章 Nginx负载均衡与反向代理 部分内容. 当我们的应用单实例不能支撑用户请求时,此时就需要扩容,从一台服务器扩容到两台.几十台.几百台.然而,用 ...

  5. 【变态问题】在发现“XXXX”类型前实体框架已使用默认 DbConfiguration 实例。

    今天在调试MVC反射调用EF写的dll 一直报错如下: 在发现“VipHallDbConfiguration”类型前实体框架已使用默认 DbConfiguration 实例.“VipHallDbCon ...

  6. 【WinForm程序】注册热键快捷键切换

    重写DefWndProc事件 #region Window 消息捕获 const int WM_COPYDATA = 0x004A; public struct COPYDATASTRUCT { pu ...

  7. css3整理--gradient

    gradient语法: -moz-linear-gradient( [<point> || <angle>,]? <stop>, <stop> [, & ...

  8. 对Array进行排序(按字母顺序)

    通过使用java.utils.Arrays.sort()和String.CASE_INSENSITIVE_OREDR,可以很容易的对结果进行排序(按字母顺序): String[] array = { ...

  9. LeetCode 20 Valid Parentheses (括号匹配问题)

    题目链接 https://leetcode.com/problems/valid-parentheses/?tab=Description   Problem: 括号匹配问题. 使用栈,先进后出!   ...

  10. Java中的一些性能监控和故障分析工具

    这些工具都在JDK的bin目录下,如果配置了java的环境变量,可以直接在命令行里调用这些小工具 jps 查看java进程信息 jstat java虚拟机状态监控工具 jstat -gc(或 -gcn ...