{"action":"closed","issue":{"url":"https://api.github.com/repos/spmjs/spm/issues/1338","labels_url":"https://api.github.com/repos/spmjs/spm/issues/1338/labels{/name}","comments_url":"https://api.github.com/repos/spmjs/spm/issues/1338/comments","events_url":"https://api.github.com/repos/spmjs/spm/issues/1338/events","html_url":"https://github.com/spmjs/spm/issues/1338","id":92351202,"number":1338,"title":"SPM@3.6 build时出现Module not found: version * not found问题","user":{"login":"maggot611","id":5390749,"avatar_url":"https://avatars.githubusercontent.com/u/5390749?v=3","gravatar_id":"","url":"https://api.github.com/users/maggot611","html_url":"https://github.com/maggot611","followers_url":"https://api.github.com/users/maggot611/followers","following_url":"https://api.github.com/users/maggot611/following{/other_user}","gists_url":"https://api.github.com/users/maggot611/gists{/gist_id}","starred_url":"https://api.github.com/users/maggot611/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maggot611/subscriptions","organizations_url":"https://api.github.com/users/maggot611/orgs","repos_url":"https://api.github.com/users/maggot611/repos","events_url":"https://api.github.com/users/maggot611/events{/privacy}","received_events_url":"https://api.github.com/users/maggot611/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-01T11:03:44Z","updated_at":"2015-07-02T09:37:23Z","closed_at":"2015-07-02T09:37:23Z","body":"有2个js文件\r\n//a.js\r\n```javascript\r\nvar b \t\t\t = require(\"./lib/b.js\");\r\nconsole.log(\"name = \", b.name);\r\n```\r\n//./lib/b.js\r\n```javascript\r\nvar child_process \t\t= require('child_process');\r\nvar b = {};\r\nb.name = \"SPM\";\r\nmodule.exports = b;\r\n```\r\n//package.json\r\n```json\r\n{\r\n  \"name\": \"worker\",\r\n  \"version\": \"0.1.0\",\r\n  \"description\": \"test\",\r\n  \"main\": \"a.js\",\r\n  \"engines\": {\r\n    \"node\": \">= 0.10.33\"\r\n  },\r\n  \"spm\": {\r\n    \"main\": \"a.js\"\r\n }\r\n}\r\n```\r\n运行spm build出现：\r\n```shell\r\n          start: build worker@0.1.0\r\n         target: http://spmjs.io\r\n          build: compile\r\n          error: ./lib/b.js\r\nModule not found: version * not found\r\n @ ./lib/b.js 1:22-46\r\n```\r\n如果把child_process的那一行去掉，就可以build过，同时可以node dist/worker/0.1.0/a.js出现正确结果。\r\nchild_process并不在http://spmjs.io/packages中，不能通过dependencies的方式从spmjs.io的packages中下载。\r\n我想build的时候，不用将util、fs、events、child_process等依赖展开，只加入相对路径的依赖。这些是Node的内部模块。\r\n请问，我应该怎么办？谢谢。"}}