用Web包和ES6反应Js设置

时间:2016-08-17 13:41:00

标签: javascript reactjs webpack es6-module-loader

在运行此命令时

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

1 个答案:

答案 0 :(得分:1)

尝试从他们的网站安装节点,以便删除sudo, 也可以尝试预设

而不是现在