我是新手,在过去的几天里,我一直在尝试构建它,以便可以开始开发我想为学校项目创建的新模块。我之前遇到的问题都在package.json中,所有命令之前必须删除它们以使它们可以在Windows cmd中调用,所以必须将其默认Python更改为2.7.9才能获取GitPython。安装,最后我将skulpt.py中的178行从winbase =“。\ support \ d8 \ x32”更改为winbase =“ support \ d8”,因为./在Windows上不起作用,并且d8.exe在目录d8而不是x32。我告诉您这些更改,以防它们是无法正常工作的原因。但是现在我收到的错误是
Maui@DESKTOP-F2RH208 MINGW64 /d/Users/Maui/Documents/GitHub/skulpt (master)
$ npm run build
> skulpt@1.0.0 build D:\Users\Maui\Documents\GitHub\skulpt
> skulpt.py dist
JavaScript debugger enabled
closure: skipped
run: 562/562 (+1 disabled)
Quitting
WARNING: working directory not clean (according to 'git status')
Running jshint
['src\\abstract.js', 'src\\ast.js', 'src\\biginteger.js', 'src\\bool.js', 'src\\builtin.js', 'src\\builtindict.js', 'src\\compile.js', 'src\\complex.js', 'src\\constants.js', 'src\\dict.js', 'src\\enumerate.js', 'src\\env.js', 'src\\errors.js', 'src\\ffi.js', 'src\\file.js', 'src\\float.js', 'src\\formatting.js', 'src\\fromcodepoint.js', 'src\\function.js', 'src\\generator.js', 'src\\import.js', 'src\\int.js', 'src\\internalpython.js', 'src\\iterator.js', 'src\\list.js', 'src\\long.js', 'src\\method.js', 'src\\misceval.js', 'src\\module.js', 'src\\number.js', 'src\\numtype.js', 'src\\object.js', 'src\\parser.js', 'src\\print.js', 'src\\seqtype.js', 'src\\set.js', 'src\\slice.js', 'src\\sorted.js', 'src\\str.js', 'src\\structseq.js', 'src\\symtable.js', 'src\\timsort.js', 'src\\tokenize.js', 'src\\tuple.js', 'src\\type.js', 'debugger\\debugger.js']
Traceback (most recent call last):
File "D:\Users\Maui\Documents\GitHub\skulpt\skulpt.py", line 1410, in <module>
main()
File "D:\Users\Maui\Documents\GitHub\skulpt\skulpt.py", line 1327, in main
dist(options)
File "D:\Users\Maui\Documents\GitHub\skulpt\skulpt.py", line 743, in dist
ret = test()
File "D:\Users\Maui\Documents\GitHub\skulpt\skulpt.py", line 235, in test
jshintcmd = "jshint {1}".format(' '.join(files))
IndexError: tuple index out of range
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! skulpt@1.0.0 build: `skulpt.py dist`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the skulpt@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Maui\AppData\Roaming\npm-cache\_logs\2018-07-14T03_09_03_140Z-debug.log
之所以也会打印所有js文件,是因为我添加了print语句,以表明它们已被正确抓取。
任何帮助将不胜感激。 谢谢