# File generated by update-locale
LANGUAGE=en_US.UTF-8
LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8
LC_TYPE=en_US.UTF-8
sudo apt-get install linux-image-4.8.0-58-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
fdutils linux-tools linux-headers-4.8.0-58-generic
The following NEW packages will be installed:
linux-image-4.8.0-58-generic
0 upgraded, 1 newly installed, 0 to remove and 154 not upgraded.
Need to get 0 B/23.6 MB of archives.
After this operation, 72.8 MB of additional disk space will be used.
Selecting previously unselected package linux-image-4.8.0-58-generic.
(Reading database ... 26575 files and directories currently installed.)
Preparing to unpack .../linux-image-4.8.0-58-generic_4.8.0-58.63~16.04.1_amd64.deb ...
Done.
Unpacking linux-image-4.8.0-58-generic (4.8.0-58.63~16.04.1) ...
Setting up linux-image-4.8.0-58-generic (4.8.0-58.63~16.04.1) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.8.0-58-generic /boot/vmlinuz-4.8.0-58-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.8.0-58-generic /boot/vmlinuz-4.8.0-58-generic
update-initramfs: Generating /boot/initrd.img-4.8.0-58-generic
E: /usr/share/initramfs-tools/hooks/fixrtc failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.8.0-58-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.8.0-58-generic.postinst line 1052.
dpkg: error processing package linux-image-4.8.0-58-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
linux-image-4.8.0-58-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
D:\projects\nodejs\webpackejs>npm run build
> webpackejs@1.0.0 build D:\projects\nodejs\webpackejs
> webpack
Hash: ab4779fc0e482b18d4d7
Version: webpack 2.6.1
Time: 4468ms
Asset Size Chunks Chunk Names
dfc4be8167690d9d34c652aa445ceab4.woff2 47.6 kB [emitted]
bundle.js 1.41 MB 0 [emitted] [big] main
index.html 380 bytes [emitted]
[1] ./~/react/react.js 56 bytes {0} [built]
[14] ./~/react-dom/index.js 59 bytes {0} [built]
[69] ./~/style-loader/lib/addStyles.js 8.7 kB {0} [built]
[73] ./~/local-storage/local-storage.js 764 bytes {0} [built]
[99] ./~/react-mdl/extra/material.js 144 kB {0} [built]
[107] ./~/react-mdl/lib/index.js 9.74 kB {0} [built]
[123] ./src/styles/sass/index.scss 1.17 kB {0} [built]
[124] ./src/styles/css/material.yellow-red.min.css 1.08 kB {0} [built]
[125] ./src/styles/css/materialIcons.css 1.05 kB {0} [built]
[127] ./src/index.js 252 bytes {0} [built]
[129] ./~/css-loader!./~/sass-loader/lib/loader.js!./src/styles/sass/index.scss 2.05 kB {0} [built]
[130] ./~/css-loader!./src/styles/css/material.yellow-red.min.css 142 kB {0} [built]
[131] ./~/css-loader!./src/styles/css/materialIcons.css 821 bytes {0} [built]
[175] ./~/react-dom/lib/ReactDOM.js 5.17 kB {0} [built]
[284] ./~/react-redux/es/index.js 230 bytes {0} [built]
+ 292 hidden modules
ERROR in bundle.js from UglifyJs
Name expected [bundle.js:17452,6]
Child html-webpack-plugin for "index.html":
[0] ./~/lodash/lodash.js 540 kB {0} [built]
[1] ./~/html-webpack-plugin/lib/loader.js!./src/index.ejs 817 bytes {0} [built]
[2] (webpack)/buildin/global.js 509 bytes {0} [built]
[3] (webpack)/buildin/module.js 517 bytes {0} [built]
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! webpackejs@1.0.0 build: `webpack`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the webpackejs@1.0.0 build 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\toly1\AppData\Roaming\npm-cache\_logs\2017-06-15T12_11_01_479Z-debug.log
import React from "react";
import { createStore } from "redux";
import { Provider, connect } from "react-redux";
let generalReducer = (store = { entries: [], ids: [] }, action) => {
switch (action.type) {
case "ADD": {
let l = { entries: [...store.entries], ids: [...store.ids] }
l.entries.push({ value: action.value });
l.ids.push(l.ids.length);
return l;
};
case "UPDATE": {
let l = { entries: [...store.entries], ids: store.ids }
l.entries[action.id].value = "123467878778";
return l;
};
default: return store;
}
}
let generalStore = createStore(generalReducer, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__());
class Element extends React.Component {
constructor(props) {
super(props);
this.elementInStore = this.props.data;
}
render() {
console.log("RENDER ELEMENT:", this.props.idKey);
return <div>
<button onClick={() => { this.props.update(this.props.idKey) }}>{this.elementInStore.value}</button>
</div>;
}
}
let ElementRedux = connect(
(store, props) => {
console.log("Element changed",store.entries[props.idKey]);
return { data: store.entries[props.idKey] };
},
dispatch => ({
update: id => dispatch({ type: "UPDATE", id })
})
)(Element);
class App extends React.Component {
render() {
console.log("render APP")
return <div> {this.props.items.map(itemId => <ElementRedux key={itemId} idKey={itemId} />)} </div>;
}
}
let AppRedux = connect(
store => ({ items: store.ids })
)(App);
generalStore.dispatch({ type: "ADD", value: "1" });
generalStore.dispatch({ type: "ADD", value: "2" });
export default <Provider store={generalStore}><AppRedux /></Provider>;
return { data: store.entries[props.idKey] };
return { data: store.entries };
То есть заменить не могу, так как не знаю, какое слово нужно убрать.