Comments (9)
看到了 你是想让用户下载mvc-cli-service 这个插件进行 build 那就是mvc-cli-service一定要发布成包 上面说的那一句改成:
answers.features.forEach(feature => { if (feature === 'service') { pkg.devDependencies['mvc-cli-service'] = '~0.0.1' } })
就可以了
from mini-cli.
你改代码了吧,没有 mx-cli-plugin-babel
这个依赖。
from mini-cli.
嗯嗯 我是按照教程自己敲了一遍
执行了:
lerna create mx-cli-plugin-babel
lerna add mx-cli-plugin-babel --scope=mx-monorepo-cli
mx-monorepo-cli 是入口 相当于mvc-cli-base
也安装了:
from mini-cli.
我刚试了一下你的代码是没有问题 我是奇怪我哪里做错了 明明有依赖却说找不到 一般会因为什么出现这种情况? 我自己再查查 希望可以得到你的建议 (排查方向)
from mini-cli.
我刚试了一下你的代码是没有问题 我是奇怪我哪里做错了 明明有依赖却说找不到 一般会因为什么出现这种情况? 我自己再查查 希望可以得到你的建议 (排查方向)
先从不会报错的版本逐步迭代,找到有错误的那个版本再看。从你的报错信息看,是没有把这个包注册到 npm,所以找不到。
from mini-cli.
本地开发不是不需要把包注册到npm嘛? 直接引用的是本地的包 比如截图的这个报错他应该直接使用的:packages/mx-cli-plugin-babel 这个文件吧
from mini-cli.
本地开发不是不需要把包注册到npm嘛? 直接引用的是本地的包 比如截图的这个报错他应该直接使用的:packages/mx-cli-plugin-babel 这个文件吧
是的 但是没在你本地找到这个包。你得找找问题出在哪。
from mini-cli.
from mini-cli.
answers.features.forEach(feature => { if (feature !== 'service') { pkg.devDependencies[
mx-cli-plugin-${feature}] = '~1.0.0' } else { pkg.devDependencies['mx-cli-service'] = '~1.0.0' } })
我发现把create.js中的这段注释掉就可以了 脚手架创建的项目使用也没有问题 想问一下为啥要加这一段呀~~?
from mini-cli.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mini-cli.