gallery-by-react icon indicating copy to clipboard operation
gallery-by-react copied to clipboard

Cannot find module 'source-map'

Open kevinlvhsl opened this issue 9 years ago • 3 comments

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

kevinlvhsl avatar Sep 17 '16 15:09 kevinlvhsl

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

kevinlvhsl avatar Sep 17 '16 15:09 kevinlvhsl

npm install source-map

ofzo avatar Sep 18 '16 00:09 ofzo

$ 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 [email protected] does not satisfy its siblings' peerDependencies requirements! npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0 npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0 npm ERR! peerinvalid Peer [email protected] wants [email protected] npm ERR! peerinvalid Peer [email protected] 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也安装了的。

kevinlvhsl avatar Sep 28 '16 10:09 kevinlvhsl