win10下运行Widen/fullstack-react项目出错的问题!!!
发布于 9 小时前 作者 tangxiaolang101 53 次浏览 来自 问答

在win10下用npm start命令启动Widen/fullstack-react项目出错,Widen/fullstack-react项目是git上的一个实例项目,地址是:https://github.com/Widen/fullstack-react。 报错信息如下: D:\newT\fullstack-react-2.0.0>npm start

[email protected] start D:\newT\fullstack-react-2.0.0 npm install; npm run webpack; node server

Usage: npm <command>

where <command> is one of: access, adduser, bin, bugs, c, cache, completion, config, ddp, dedupe, deprecate, dist-tag, docs, edit, explore, get, help, help-search, i, init, install, install-test, it, link, list, ln, logout, ls, outdated, owner, pack, ping, prefix, prune, publish, rb, rebuild, repo, restart, root, run-script, s, se, search, set, shrinkwrap, star, stars, start, stop, t, tag, team, test, tst, un, uninstall, unpublish, unstar, up, update, v, version, view, whoami

npm <cmd> -h quick help on <cmd> npm -l display full usage info npm help <term> search for help on <term> npm help npm involved overview

Specify configs in the ini-formatted file: C:\Users\anmin.npmrc or on the command line via: npm <command> --key value Config info can be viewed via: npm help config

[email protected] C:\Users\anmin\AppData\Roaming\npm\node_modules\npm

npm ERR! Windows_NT 10.0.10586 npm ERR! argv “C:\Program Files\nodejs\node.exe” “C:\Users\anmin\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js” "start" npm ERR! node v5.10.1 npm ERR! npm v3.8.6 npm ERR! code ELIFECYCLE npm ERR! [email protected] start: npm install; npm run webpack; node server npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] start script ‘npm install; npm run webpack; node server’. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the fullstack-react package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! npm install; npm run webpack; node server npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs fullstack-react npm ERR! Or if that isn’t available, you can get their info via: npm ERR! npm owner ls fullstack-react npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! D:\newT\fullstack-react-2.0.0\npm-debug.log

package.json内容如下: { “name”: “fullstack-react”, “version”: “2.0.0”, “description”: “”, “main”: “./site/bundle.js”, “author”: “”, “license”: “MIT”, “dependencies”: { “body-parser”: “1.15.0”, “express”: “4.13.4”, “falcor”: “0.1.16”, “falcor-express”: “0.1.2”, “falcor-http-datasource”: “0.1.3”, “falcor-router”: “0.2.12”, “react”: “0.14.7”, “react-dom”: “0.14.7” }, “devDependencies”: { “babel-cli”: “6.5.1”, “babel-core”: “6.5.1”, “babel-loader”: “6.2.2”, “babel-plugin-rewire”: “1.0.0-beta-5”, “babel-preset-es2015”: “6.5.0”, “babel-preset-react”: “6.5.0”, “jasmine”: “2.4.1”, “jasmine-core”: “2.4.1”, “karma”: “0.13.19”, “karma-jasmine”: “0.3.7”, “karma-phantomjs-launcher”: “1.0.0”, “karma-spec-reporter”: “0.0.24”, “karma-webpack”: “1.7.0”, “phantomjs-prebuilt”: “2.1.4”, “rewire”: “2.5.1”, “webdriverio”: “4.0.3”, “webpack”: “1.12.13” }, “scripts”: { “start”: “npm install; npm run webpack; node server”, “setup-webdriver”: “(mkdir server/test/bin; cd server/test/bin; curl -O http://selenium-release.storage.googleapis.com/2.51/selenium-server-standalone-2.51.0.jar server/test)”, “start-webdriver”: “java -jar server/test/bin/selenium-server-standalone-2.51.0.jar”, “test-client”: “karma start config/karma.conf.js”, “test-integration”: “node server/test/integration”, “test-server”: “jasmine JASMINE_CONFIG_PATH=config/jasmine.json”, “test”: “npm run test-client; npm run test-server”, “webpack”: “webpack --config config/webpack.config.js” } }

请各位帮忙看看,是哪里出错了,win下是需要做其他配置吗? 补充:我在centos下测试了一下,可以跑。。。,win为什么不可以!!!!!

1 回复

不懈努力!!解决了自己。

回到顶部