Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
node version: 6.7.0
platform: macOS 10.12
errors:
老的项目,在使用fis开发的时候,使用build.sh -s的时候,偶尔会提示如下错误:
此时需要全局安装相应的包才能解决(旧的工程目录下没有package.json, package.json 存放于_build文件夹中)。
对
fis.require添加判断,如果当前文件目录不存在node_modules,会扫描当前文件夹的目录,免去全局安装,只需在项目中具有package.json的目录下npm i [package]即可。require默认不会去_build文件夹下面搜索node_modules,通过klaw实现工程目录下的全局搜索。