无法构建nodejs app

时间:2015-10-21 06:23:55

标签: node.js reactjs npm

所以我正在尝试这个go-react示例,但我无法按照说明构建它。运行以下命令:

~/react-go/jsapp$ npm run build

我收到以下错误:

> example-js-app@0.0.0 build /home/x/react-go/jsapp
> browserify -t reactify -r react -r ./src/App > ../webapp/static/bundle.js

/usr/bin/env: node: No such file or directory
npm ERR! weird error 127
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! not ok code 0

以下是package.json内容:

{
    "name": "example-js-app",
    "version": "0.0.0",
    "description": "",
    "main": "index.js",
    "scripts": {
       "build": "browserify -t reactify -r react -r ./src/App > ../webapp/static/bundle.js",
       "test": "echo \"Error: no test specified\" && exit 1"
   },
   "dependencies": {
     "envify": "^3.4.0",
     "react": "^0.14.0",
     "browserify": "^11.2.0",
     "reactify": "^1.1.1"
   }
}

我是nodejs的新手。我做错了什么?

0 个答案:

没有答案