npm 的是報錯 @XXXXX postinstall 處理


 使用 --ignore-scripts 安裝 (先把某個報錯的包單獨安裝)

npm install @chatie/git-scripts@0.2.5 --ignore-scripts






D:\test\wechaty-puppet-padpro>npm install

> git-scripts@0.4.3 postinstall D:\test\wechaty-puppet-padpro\node_modules\git-scripts
> node bin/install

Not a git repository.

> @chatie/git-scripts@0.2.5 postinstall D:\test\wechaty-puppet-padpro\node_modules\@chatie\git-scripts
> bash scripts/install.sh

'bash' 不是內部或外部命令,也不是可運行的程序
或批處理文件。
npm WARN wechaty-puppet-hostie@0.3.36 requires a peer of wechaty-puppet@^0.21.12 but none is installed. You must install peer dependencies yourself.
npm WARN ws@7.2.3 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN ws@7.2.3 requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself.
npm WARN wechaty-puppet@0.17.25 requires a peer of file-box@^0.10.6 but none is installed. You must install peer dependencies yourself.
npm WARN @typescript-eslint/parser@1.13.0 requires a peer of eslint@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @typescript-eslint/eslint-plugin@1.13.0 requires a peer of eslint@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @typescript-eslint/eslint-plugin-tslint@1.13.0 requires a peer of eslint@^5.0.0 but none is installed. You must install peer dependencies yourself.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @chatie/git-scripts@0.2.5 postinstall: `bash scripts/install.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @chatie/git-scripts@0.2.5 postinstall 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!     D:\LearnNode\nodejs\node_cache\_logs\2020-03-27T12_21_52_646Z-debug.log

D:\test\wechaty-puppet-padpro>npm -v

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM