materliu / gallery-by-react

one photo gallery project based on react.
MIT License
559 stars 171 forks source link

Cannot find module 'source-map' #12

Open kevinlvhsl opened 8 years ago

kevinlvhsl commented 8 years ago

初学react。 下载下来后, 运行会报: Cannot find module 'source-map' @ multi main 我的是windows系统。

kevinlvhsl commented 8 years ago

是浏览器要装这个模块,还是要装这个包?

ofzo commented 8 years ago

npm install source-map

kevinlvhsl commented 8 years ago

$ npm install escape-html source-map

npm WARN unmet dependency D:\Projects\React\gallery-by-react\node_modules\react-hot-loader requires source-map@'^0.4.4' but will load npm WARN unmet dependency D:\Projects\React\gallery-by-react\node_modules\source-map, npm WARN unmet dependency which is version 0.5.6 npm WARN unmet dependency D:\Projects\React\gallery-by-react\node_modules\grunt-contrib-connect\node_modules\connect requires escape-html@'1.0.1' but will load npm WARN unmet dependency D:\Projects\React\gallery-by-react\node_modules\escape-html, npm WARN unmet dependency which is version 1.0.3 npm ERR! Windows_NT 10.0.10586 npm ERR! argv "D:\nodejs\node.exe" "D:\nodejs\node_modules\npm\bin\npm-cli.js" "install" "escape-html" "source-map" npm ERR! node v4.4.0 npm ERR! npm v2.14.20 npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package grunt@1.0.1 does not satisfy its siblings' peerDependencies requirements! npm ERR! peerinvalid Peer grunt-contrib-copy@0.5.0 wants grunt@~0.4.0 npm ERR! peerinvalid Peer grunt-contrib-clean@0.6.0 wants grunt@~0.4.0 npm ERR! peerinvalid Peer grunt-karma@0.8.3 wants grunt@0.4.x npm ERR! peerinvalid Peer grunt-contrib-connect@0.8.0 wants grunt@~0.4.0

npm ERR! Please include the following file with any support request: npm ERR! D:\Projects\React\gallery-by-react\npm-debug.log 是有包版本不能兼容吗? escape-html也安装了的。