繁体   English   中英

'。 不被识别为内部或外部命令,

[英]'.' is not recognized as an internal or external command,

 npm start

> server@1.0.0 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! server@1.0.0 start: `./node_modules/nodemon/bin/nodemon.js src/app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the server@1.0.0 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.com/IBM/fabcar-blockchain-sample

将文件夹名称“Final Try”更改为“final-try”,然后再试一次。它会起作用(文件夹名称之间有空格)

编辑package.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"

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM