使用 web pack 和 ES6 设置 React Js
React Js setup with web pack and ES6
当在 运行 这个命令中时
sudo npm i -D babel-core babel-loader babel-present-es2015 babel-present-react react-hot-loader webpack webpack-dev-server
我遇到了这个错误
npm ERR! 404 Not Found
npm ERR! 404
npm ERR! 404 'babel-present-es2015' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 It was specified as a dependency of 'react-todos'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.
npm ERR! System Linux 3.19.0-65-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "i" "-D" "babel-core" "babel-loader" "babel-present-es2015" "babel-present-react" "react-hot-loader" "webpack" "webpack-dev-server"
npm ERR! cwd /home/moeez/Desktop/data/react-todos
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.21
npm ERR! code E404
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/moeez/Desktop/data/react-todos/npm-debug.log
npm ERR! not ok code 0
请帮我设置 React Js 提前谢谢
尝试从他们的网站安装节点,这样你就可以删除 sudo,
也可以尝试 preset
而不是 present
当在 运行 这个命令中时
sudo npm i -D babel-core babel-loader babel-present-es2015 babel-present-react react-hot-loader webpack webpack-dev-server
我遇到了这个错误
npm ERR! 404 Not Found
npm ERR! 404
npm ERR! 404 'babel-present-es2015' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 It was specified as a dependency of 'react-todos'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.
npm ERR! System Linux 3.19.0-65-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "i" "-D" "babel-core" "babel-loader" "babel-present-es2015" "babel-present-react" "react-hot-loader" "webpack" "webpack-dev-server"
npm ERR! cwd /home/moeez/Desktop/data/react-todos
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.21
npm ERR! code E404
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/moeez/Desktop/data/react-todos/npm-debug.log
npm ERR! not ok code 0
请帮我设置 React Js 提前谢谢
尝试从他们的网站安装节点,这样你就可以删除 sudo, 也可以尝试 preset
而不是 present