【发布时间】:2019-11-27 00:31:45
【问题描述】:
最近有人要求我向一个新项目添加一些功能,但我在尝试运行 npm install 时突然遇到了这个问题
C:\Users\NUMBER 1\Desktop\Galacticode>npm install
> codeHome@1.0.0 postinstall C:\Users\NUMBER 1\Desktop\Galacticode
> touch secrets.js
Touching secrets.js
> codeHome@1.0.0 prepare C:\Users\NUMBER 1\Desktop\Galacticode
> if [ -d .git ]; then npm-merge-driver install; fi
-d was unexpected at this time.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! codeHome@1.0.0 prepare: `if [ -d .git ]; then npm-merge-driver install; fi`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the codeHome@1.0.0 prepare 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\NUMBER 1\AppData\Roaming\npm-cache\_logs\2019-11-26T15_32_13_499Z-debug.log
【问题讨论】:
标签: reactjs git npm npm-install