小编nes*_*ssa的帖子

尝试运行“npm run deploy”时,npm 没有此类文件或目录

我收到此错误:

no such file or directory, stat 'C:\Users\nessa\VS Code\React-Django\website\frontend\build'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! frontend@1.0.0 deploy: `gh-pages -d build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the frontend@1.0.0 deploy script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Run Code Online (Sandbox Code Playgroud)

当尝试运行 npm run deploy 时。

这是我的package.json文件,位于我的.\website\frontend

{
  "name": "frontend",
  "version": "1.0.0",
  "private": true,
  "description": "",
  "main": "index.js",
  "scripts": {
    "start": "react-scripts …
Run Code Online (Sandbox Code Playgroud)

github node.js npm github-pages reactjs

1
推荐指数
1
解决办法
5348
查看次数

标签 统计

github ×1

github-pages ×1

node.js ×1

npm ×1

reactjs ×1