gpt4 book ai didi

node.js - 尝试在 win7 上安装 uglify.js 时出错

转载 作者:太空宇宙 更新时间:2023-11-04 01:11:52 26 4
gpt4 key购买 nike

我正在尝试在win7上制作最新的bootstrap版本。为此,我遵循 http://thomassileo.com/blog/2012/04/21/using-bootstrap-as-a-git-submodule/ 的指示。我安装了nodeJS和NPM。当我尝试运行时:

npm install uglify-js -g

我得到:

$ npm -g install uglify-js
npm http GET https://registry.npmjs.org/uglify-js
npm http 304 https://registry.npmjs.org/uglify-js
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/source-map
npm http 304 https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/optimist/-/optimist-0.3.7.tgz
npm http 304 https://registry.npmjs.org/source-map
npm ERR! error installing uglify-js@2.2.5

npm ERR! Error: No compatible version found: source-map@'>=0.1.7- <0.2.0-'
npm ERR! Valid install targets:
npm ERR! ["0.0.0","0.1.0","0.1.1","0.1.2","0.1.3"]
npm ERR! at installTargetsError (c:\Program Files (x86)\nodejs\node_modules\
npm\lib\cache.js:488:10)
npm ERR! at next_ (c:\Program Files (x86)\nodejs\node_modules\npm\lib\cache.
js:438:17)
npm ERR! at next (c:\Program Files (x86)\nodejs\node_modules\npm\lib\cache.j
s:415:44)

关于下一步该做什么有什么想法吗?

谢谢

比尔

最佳答案

来自https://github.com/mishoo/UglifyJS

UglifyJS is now available through NPM — npm install uglify-js@1 should do the job.

NOTE: The NPM package has been upgraded to UglifyJS2. If you need to install version 1.x
you need to add `@1` to the command, as I did above. I strongly suggest you to try to
upgrade, though this might not be simple (v2 has a completely different AST structure and API).

关于node.js - 尝试在 win7 上安装 uglify.js 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16311861/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com