'.'不被承认为内部或外部命令。

问题描述 投票:0回答:1
 npm start

> [email protected] start C:\Users\07\OneDrive\Desktop\Final Try\fabcar-blockchain-sample\web-app\server
> ./node_modules/nodemon/bin/nodemon.js src/app.js

'.' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `./node_modules/nodemon/bin/nodemon.js src/app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\07\AppData\Roaming\npm-cache\_logs\2020-05-04T13_24_08_021Z-debug.log

'.'未被识别为内部或外部命令,.在这里,我按照基本的Hyperledger faberic Fabcar教程。但我得到的错误是"'.'不被识别为内部或外部命令"。我所遵循的教程是:"'.'不被识别为内部或外部命令"。https:/github.comIBMfabcar-blockchain-sample。.

hyperledger-fabric blockchain hyperledger ibm-blockchain
1个回答
1
投票

把文件夹名 "Final Try "改成 "final-try",然后再试一次......就可以了(文件夹名中间有空格)


0
投票

编辑 软件包.json 并去除 ./.

改变

"start": "./node_modules/nodemon/bin/nodemon.js src/app.js"

"start": "nodemon src/app.js"

或者,您可以尝试

npm install -g nodemon

并改变 start 命令

"start": "./node_modules/nodemon/bin/nodemon.js src/app.js"

0
投票

你也可以使用npx

"start": "npx nodemon src/app.js"

请注意,npx只适用于最新的LTS node.js版本。

© www.soinside.com 2019 - 2024. All rights reserved.