我试图运行rails-react-boilerplate,一切顺利,但在安装结束时(捆绑安装,纱线安装,rake db:create ..),webpack的命令简单无法正常工作。 github存储库上有一个链接:rails-react-boilerplate。
在此命令python3 -m pygame.examples.aliens
之后,我收到此错误:
npm run webpack
我认为主要问题是:
openssl config failed: error:02001003:system library:fopen:No such process
> rails-react-boilerplate@1.0.0 webpack D:\code\portfolio\liftProgress
> ./node_modules/webpack/bin/webpack.js --progress --colors
'.' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! rails-react-boilerplate@1.0.0 webpack:
`./node_modules/webpack/bin/webp
ack.js --progress --colors`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the rails-react-boilerplate@1.0.0 webpack 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\Derid\AppData\Roaming\npm-cache\_logs\2017-12-
30T07_27_37_
058Z-debug.log
openssl config failed: error:02001003:system library:fopen:No such process
..但我很聪明。结束..非常感谢您的指导和帮助!:)
答案 0 :(得分:0)
这是Windows问题,您可以尝试从./
文件的实际命令中省略package.json
。
实际上经过一些研究,包括节点可执行文件应该跨平台工作:
"webpack": "node node_modules/webpack/bin/webpack.js --progress --colors",