2017-09-18 22 views
0

我试图安装Redux的形式&使用NPM安装终极版型材料的UI,但它显示你需要先安装同行的依赖,这是我现在做的但是这些模块在节点模块文件夹下仍然不可用。终极版形式没有得到安装和NPM安装不管理员错误

我运行在混帐bash的“故宫安装”以管理员的身份,但其作为超级用户/管理员显示的运行。但是其运行时,我使用“故宫安装-g”,我没有得到这个奇怪的行为的原因。 但是仍然没有得到安装使用-g这些模块后 - 模块的错误未找到即将到来。

环境?

Node version - 8.0.0 (Even tried with v6) npm - 5.4.0 Redux form -latest OS- Windows 10

日志 -

$ npm install redux-form npm ERR! path D:\ABC\template\node_modules\fsevents\node_modules\aproba\package.json npm ERR! code EPERM npm ERR! errno -4048 npm ERR! syscall unlink npm ERR! Error: EPERM: operation not permitted, unlink 'D:\ABC\template\node_modules\fsevents\node_modules\aproba\package.json' npm ERR! { Error: EPERM: operation not permitted, unlink 'D:\ABC\template\node_modules\fsevents\node_modules\aproba\package.json' npm ERR! stack: 'Error: EPERM: operation not permitted, unlink 'D:\ABC\template\node_modules\fsevents\node_modules\aproba\package.json'', npm ERR! errno: -4048, npm ERR! code: 'EPERM', npm ERR! syscall: 'unlink', npm ERR! path: 'D:\ABC\template\node_modules\fsevents\node_modules\aproba\package.json' } npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\dbhowmick.ABC\AppData\Roaming\npm-cache_logs\2017-09-18T13_03_31_862Z-debug.log

对于只是 '故宫安装' 同样的错误来了,即使我以管理员身份运行。

$ npm install -g redux-form npm WARN [email protected] requires a peer of [email protected]^15.0.0-0 || ^16.0.0-0 but none is installed. You must install peer dependencies yourself. npm WARN [email protected] requires a peer of [email protected]^4.3.0 || ^5.0.0 but none is installed. You must install peer dependencies yourself. npm WARN [email protected] requires a peer of [email protected]^3.0.0 but none is installed. You must install peer dependencies yourself.

[email protected] added 24 packages in 14.599s Its showing added but no folder created under node modules, & redux form module not found is coming.

对于安装终极版型材料的UI同样的错误来了

$ NPM安装-g终极版型材料的UI NPM WARN [email protected]需要@ 15的反应,但没有安装。您必须自己安装对等关系。 NPM WARN [email protected]需要Redux的形式@ 6的对等体,但在安装无。您必须自己安装对等关系。

[email protected] 在1.509s

+0

即使我创建了一个新的目录签出的代码中有&试着做一个NPM删除节点模块安装后,仍然没有任何帮助的原因。当我以管理员身份打开git bash后,正在执行'npm install'时。这个错误仍然显示,我已经关闭了所有使用package.json的进程。 –

回答

0

加入1包更新通过命令提示NPM(如运行管理员),然后在安装终极版为我工作。

更新:

npm i -g npm

安装:

npm install redux --save