我正在尝试安装npm,但再次出现错误。我什至尝试安装具有所有权限的依赖项,但是仍然出现相同的错误

时间:2020-04-08 12:35:09

标签: ubuntu npm permissions dependencies npm-install

首先,我尝试了此操作,但出现了错误

安装依赖项

interface IAction<K extends keyof IThing> {
  name: K;
  value: IThing[K];
}

function assign<K extends keyof IThing>(thing: IThing, action: IAction<K>): void {
  thing[action.name] = action.value;
}

const action = { name: 'someProp', value: 'someValue' } as const;
assign(state.thing, action); // ok

然后我尝试了此操作,但又出现了错误

具有所有权限的安装依赖项

$ npm install

This is the latter mentioned way

0 个答案:

没有答案