npm start missing log信息在下面 5C

0 info it worked if it ends with ok
1 verbose cli [ 'D:\ProgramFiles\nodejs\node.exe',
1 verbose cli 'C:\Users\fgdt\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'start' ]
2 info using npm@5.5.1
3 info using node@v8.9.0
4 verbose config Skipping project config: C:\Users\fgdt/.npmrc. (matches userconfig)
5 verbose stack Error: missing script: start
5 verbose stack at run (C:\Users\fgdt\AppData\Roaming\npm\node_modules\npm\lib\run-script.js:151:19)
5 verbose stack at C:\Users\fgdt\AppData\Roaming\npm\node_modules\npm\lib\run-script.js:61:5
5 verbose stack at C:\Users\fgdt\AppData\Roaming\npm\node_modules\npm\node_modules\read-package-json\read-json.js:115:5
5 verbose stack at C:\Users\fgdt\AppData\Roaming\npm\node_modules\npm\node_modules\read-package-json\read-json.js:402:5
5 verbose stack at checkBinReferences_ (C:\Users\fgdt\AppData\Roaming\npm\node_modules\npm\node_modules\read-package-json\read-json.js:357:45)
5 verbose stack at final (C:\Users\fgdt\AppData\Roaming\npm\node_modules\npm\node_modules\read-package-json\read-json.js:400:3)
5 verbose stack at then (C:\Users\fgdt\AppData\Roaming\npm\node_modules\npm\node_modules\read-package-json\read-json.js:160:5)
5 verbose stack at ReadFileContext. (C:\Users\fgdt\AppData\Roaming\npm\node_modules\npm\node_modules\read-package-json\read-json.js:332:20)
5 verbose stack at ReadFileContext.callback (C:\Users\fgdt\AppData\Roaming\npm\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:78:16)
5 verbose stack at FSReqWrap.readFileAfterOpen as oncomplete
6 verbose cwd C:\Users\fgdt\Desktop\testReact
7 verbose Windows_NT 6.1.7601
8 verbose argv "D:\ProgramFiles\nodejs\node.exe" "C:\Users\fgdt\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "start"
9 verbose node v8.9.0
10 verbose npm v5.5.1
11 error missing script: start
12 verbose exit [ 1, true ]

3个回答

你用的nodejs吧,npm install了吗?根目录的packagejson文件是否存在

qq_35993810
管那么多 都弄了,一开始是ok的可以运行,突然就不行了
2 年多之前 回复

你用的nodejs吧,npm install了吗?根目录的packagejson文件是否存在

package.json里面没有配置start命令,在script里配置
missing script: start说的很清楚里

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问