我想直接从Github安装npm软件包“ rinose/react-resizeable-rotatable-draggable”,因为它具有onTouch事件功能,npm注册表中的原始软件包mockingbot/react-resizeable-rotatable-draggable中没有此功能。
如果我使用“ npm install react-resizeable-rotatable-draggable”,它将为我提供原始的模拟机器人版本,而没有onTouch事件功能。
我尝试使用“ npm install git + https://github.com/rinose/react-resizable-rotatable-draggable.git”,但出现以下错误。
PS C:\Users\Forge-15\Desktop\React\USM Sign\client> npm i git+https://github.com/rinose/react-resizable-rotatable-draggable.git
> react-resizable-rotatable-draggable-touch@0.3.0-dev.0 prepack C:\Users\Forge-15\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-7be54499
> npm run build
> react-resizable-rotatable-draggable-touch@0.3.0-dev.0 build C:\Users\Forge-15\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-7be54499
> rollup -c
[!] Error: Cannot find module 'rollup-plugin-babel'
Require stack:
- C:\Users\Forge-15\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-7be54499\rollup.config.js
- C:\Users\Forge-15\AppData\Roaming\npm\node_modules\rollup\dist\shared\loadConfigFile.js
- C:\Users\Forge-15\AppData\Roaming\npm\node_modules\rollup\dist\bin\rollup
Error: Cannot find module 'rollup-plugin-babel'
Require stack:
- C:\Users\Forge-15\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-7be54499\rollup.config.js
- C:\Users\Forge-15\AppData\Roaming\npm\node_modules\rollup\dist\shared\loadConfigFile.js
- C:\Users\Forge-15\AppData\Roaming\npm\node_modules\rollup\dist\bin\rollup
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
at Function.Module._load (internal/modules/cjs/loader.js:842:27)
at Module.require (internal/modules/cjs/loader.js:1026:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (C:\Users\Forge-15\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-7be54499\rollup.config.js:5:13)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.require.extensions.<computed> [as .js] (C:\Users\Forge-15\AppData\Roaming\npm\node_modules\rollup\dist\shared\loadConfigFile.js:508:20)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Module.require (internal/modules/cjs/loader.js:1026:19)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-resizable-rotatable-draggable-touch@0.3.0-dev.0 build: `rollup -c`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-resizable-rotatable-draggable-touch@0.3.0-dev.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Forge-15\AppData\Roaming\npm-cache\_logs\2020-09-26T07_22_11_133Z-debug.log
npm ERR! premature close
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Forge-15\AppData\Roaming\npm-cache\_logs\2020-09-26T07_22_11_179Z-debug.log
我搜索了“ rollup-plugin-babel”,因为系统对此有所抱怨。但是,在its github page中,它表示“此软件包已移动,现在可以在@ rollup / plugin-babel上使用。请更新您的依赖项。此存储库不再维护。”。
我试图npm安装@ rollup / plugin-babel。但是当我尝试“ npm install git + https://github.com/rinose/react-resizable-rotatable-draggable.git”时,我仍然遇到相同的错误“找不到模块'rollup-plugin-babel'” >
请帮助我。谢谢!