-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
打包就报错 #12
Comments
我也是遇到这个问题。 运行代码和返回信息如下: $ moles-packer --entry index.ios.js Error: Cannot find module 'node-haste/lib/DependencyGraph/docblock.js' |
@zhangpoor 这个问题你解决了吗? |
试试:npm install -g node-haste |
已解决。 全局安装了node-haste也会有后续问题,比如es5的有个插件找不到,因此我是安装在了开发环境。 |
我安装在开发环境下面一直还是提示“Cannot find module 'node-haste/lib/DependencyGraph/docblock.js'”,全局安装的确又遇到es5的问题。有办法吗? |
开发环境下安装 执行node_modules/.bin/moles-packer命令。全局安装需要先安装node-haste,然后它会在moles-packer打包的base路径下找es5,所以确定你的base路径是在项目目录下并且在开发环境下安装moles-packer,因为moles-packer会有许多依赖库,es5就是其中之一。 |
按你的要求先执行“npm install -g node-haste”,之后执行的“npm install -g moles-packer”,但是执行“moles-packer |
“所以确定你的base路径是在项目目录下”---你说的base路径是指的哪个路径啊? |
其实我的意思是 你要运行全局的moles-packer也需要 在你的项目下将moles-packer在开发环境下再安装一次 它会去你的项目中的node_modules中去找transform-es5-property-mutators这个插件 所谓base其实就是运行打包命令的位置,所以你尽量在项目路径下运行打包命令。 |
有没有交流群啊,我要寻求组织 |
貌似没有 不过作者说这周开始可能会重新开始维护这个项目 这些问题后面应该都能解决~ |
你qq多少? |
看git主页 |
@zlx0212 你解决这个问题没有呢, 我也是卡在这里了 |
Cannot find module 'node-haste/lib/DependencyGraph/docblock.js' 这个是因为喔安装出错了吗,少文件了吗?
The text was updated successfully, but these errors were encountered: