为啥安装不了rollup?

来源:2-7 模块化 - rollup安装

江城fen

2018-06-11

➜  Rollup-wfp npm i --save-dev rollup rollup-plugin-node-resolve rollup-plugin-babel babel-plugin-external-helpers babel-preset-latest /Applications/XAMPP/xamppfiles/htdocs/Vue/ES6/index.js

npm WARN deprecated babel-preset-latest@6.24.1: We're super ?  excited that you're trying to use ES2017+ syntax, but instead of making more yearly presets ? , Babel now has a better preset that we recommend you use instead: npm install babel-preset-env --save-dev. preset-env without options will compile ES2015+ down to ES5 just like using all the presets together and thus is more future proof. It also allows you to target specific browsers so that Babel can do less work and you can ship native ES2015+ to user ? ! We are also in the process of releasing v7, so please give http://babeljs.io/blog/2017/09/12/planning-for-7.0 a read and help test it out in beta! Thanks so much for using Babel ?, please give us a follow on Twitter @babeljs for news on Babel, join slack.babeljs.io for discussion/development and help support the project at opencollective.com/babel

npm ERR! code ENOLOCAL

npm ERR! Could not install "../index.js" as it is not a directory and is not a file with a name ending in .tgz, .tar.gz or .tar


npm ERR! A complete log of this run can be found in:

npm ERR!     /Users/lishaocheng/.npm/_logs/2018-06-11T07_42_30_342Z-debug.log

➜  Rollup-wfp

http://img.mukewang.com/szimg/5b1e28510001f37916220584.jpg

写回答

1回答

双越

2018-06-11

你命令后面加这个 /Applications/XAMPP/xamppfiles/htdocs/Vue/ES6/index.js 是干嘛的

0
2
双越
回复
江城fen
客气。感觉课程有帮助,欢迎给课程一个好评,不要吝啬你的评价哈 ?。
2018-06-11
共2条回复

前端跳槽必备 一线互联网公司高级前端JavaScript面试

视频讲解前端面试中的JS高级知识点,扩展JS知识深度,从容面试

1621 学习 · 218 问题

查看课程