简体   繁体   English

谁能帮我解决 npm --prefix 问题?

[英]Can anyone help me with npm --prefix?

I'm stuck with npm --prefix.我坚持使用 npm --prefix。 I'm trying to prefix my frontend folder so I can run both the backend and frontend at the same time.我正在尝试为我的前端文件夹添加前缀,以便我可以同时运行后端和前端。

I keep getting an error with the wrong pathway: \backend\frontend/package.json.我不断收到错误路径的错误消息:\backend\frontend/package.json。

Can anyone help me with that?任何人都可以帮我吗?

{
      "name": "backend",
      "version": "1.0.0",
      "description": "User Authentication APP - MERN stack",
      "main": "server.js",
      "scripts": {
        "start": "node backend/server.js",
        "server": "nodemon backend/server.js",
        "client": "npm start --prefix frontend ",
        "dev": "concurrently \"npm run server\" \"npm run client\""
      }
    }
You can test this package.json
 "scripts": {
    "server": "npm run watch --prefix server",
    "client": "npm start --prefix client",
    "watch": "npm run server & npm run client"
}

-> npm run watch

暂无
暂无

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

相关问题 谁能帮我解决这个与passportjs相关的错误 - Can anyone help me with this error related to passportjs 我的服务器列表命令不和谐机器人错误,任何人都可以帮助我 - my serverlist commands discord bot error, anyone can help me 谁能帮我计算一个快速端口随机器的数学 - Can anyone help me with the math for an express port randomizer 当我编写 npm start 并收到此错误时,我的反应应用程序没有启动,任何人都可以帮助我,我是新来的反应。 我正在使用 Acode(Editor) 和 termux - My react app does not start when I write npm start and get this error can anyone please help me I am new to react. I am using Acode(Editor) and termux 我遇到npm启动问题,有人可以帮我吗? - I'm having npm start problems, can someone help me? 是否有任何 NPM package 可以帮助我解决这种情况? - is there any NPM package which can help me out with this situation? 谁能解释一下 npm 这种行为背后的原因是我没有正确安装依赖项还是其他原因 - Can anyone explain me what is the reason behind this behaviour of npm have I not installed the dependencies correctly or is it something else 部署到 Vercel 时出现错误。 谁能帮我解决下面的问题? - I am getting errors when deploying to Vercel. Can anyone help me with the my issues below? 对安装Yomen进行故障排除。 谁能帮助我解决这个问题..! - Troubleshooting installing yomen. Can anyone help me in solving this issue..! 我正在尝试使用yeoman和骨干创建示例应用程序,但显示一些错误有人可以帮助我吗? - I am trying to create sample app using yeoman and backbone but display some error can anyone help me?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM