简体   繁体   English

npm 无法正确运行 react js

[英]npm doesn't run correctly for react js

when I want to run my project on react this error appears...how to solve it?当我想在反应时运行我的项目时,会出现此错误...如何解决?

W:\Burgerapp>npm start
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path W:\Burgerapp\package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'W:\Burgerapp\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Polymer\AppData\Roaming\npm-cache\_logs\2020-08-11T13_03_57_137Z-debug.log ```

It seems that you are writing "npm start" in the wrong place because there is no "package.json" file in the directory.似乎你在错误的地方写了“npm start”,因为目录中没有“package.json”文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 React.js JSON数据更新,但状态不会更新,因此UI不会更新 - React.js JSON data updates but state doesn't and hence UI doesn't update npm 命令不更新 json - npm command doesn't update json “npm run build”:“目标环境不支持动态 import() 语法,因此无法在脚本中使用外部类型‘模块’” - "npm run build" : "The target environment doesn't support dynamic import() syntax so it's not possible to use external type 'module' within a script" [错误:无法找到npm模块'react / package.json'。 您是否忘记在'modules-runtime'包中的package.js中调用'Npm.depends'?] - [Error: Can't find npm module 'react/package.json'. Did you forget to call 'Npm.depends' in package.js within the 'modules-runtime' package?] npm运行客户端&npm运行服务器运行不正常(不会同时运行) - npm run client & npm run server not running properly (won't run at the same time) 无法运行反应js项目 - Unable to run react js project MongoDB 脚本正确加载,但不起作用 - MongoDB Script loads correctly, but doesn't work JsonObject无法正确填写表格 - JsonObject doesn't fill table correctly POST通话无法正常工作? - POST call doesn't work correctly? JSON无法正确解析到数据库中 - JSON doesn't get parsed correctly into database
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM