English 中文(简体)
无法操作“零开始”就是错误。 如何解决?
原标题:Unable to run "npm start" shows error. how to resolve?
  • 时间:2017-02-15 09:19:37
  •  标签:
  • node.js
  • npm

在窗口10中,在“零开始”评论时发现错误。

https://i.stack.imgur.com/Ejv0p.png” rel=“nofollow noreferer”>showing误差

包裹。

https://i.stack.imgur.com/0vrGR.png”rel=“nofollow noreferer”>Packages.json

Log
  • 0 info it worked if it ends with ok
  • 1 verbose cli [ C:Program Files odejs ode.exe ,
  • 1 verbose cli C:UsersvkaruthaAppDataRoaming pm ode_modules pmin pm-cli.js ,
  • 1 verbose cli start ]
  • 2 info using [email protected]
  • 3 info using [email protected]
  • 4 verbose run-script [ prestart , start , poststart ]
  • 5 info lifecycle [email protected]~prestart: [email protected]
  • 6 silly lifecycle [email protected]~prestart: no script for prestart, continuing
  • 7 info lifecycle [email protected]~start: [email protected]
  • 8 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true
  • 9 verbose lifecycle [email protected]~start: PATH: C:UsersvkaruthaAppDataRoaming pm ode_modules pmin ode-gyp-bin;C:UsersvkaruthaDocumentsReacthello-world ode_modules.bin;C:ProgramDataOracleJavajavapath;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:Program Files (x86)WebExProductivity Tools;C:Program Files (x86)CiscoOSD-ShellApplications;C:Program FilesJavajdk1.8.0_101in;C:Ciscosoftwareapache-maven-3.3.9in;C:Program FilesGitcmd;C:Program Files odejs;C:Program FilesTortoiseSVNin;C:Program Files odejsin;C:Program Files (x86)SennheiserSoftphoneSDK;C:Program Files (x86)ssh communications securityssh Secure Shell;C:UsersvkaruthaAppDataRoaming pm;C:Program Files (x86)Microsoft VS Codein;C:Program Files odejsin
  • 10 verbose lifecycle [email protected]~start: CWD: C:UsersvkaruthaDocumentsReacthello-world
  • 11 silly lifecycle [email protected]~start: Args: [ /d /s /c , webpack-dev-server --hot ]
  • 12 silly lifecycle [email protected]~start: Returned: code: 4294967295 signal: null
  • 13 info lifecycle [email protected]~start: Failed to exec start script
  • 14 verbose stack Error: [email protected] start: webpack-dev-server --hot
  • 14 verbose stack Exit status 4294967295
  • 14 verbose stack at EventEmitter. (C:UsersvkaruthaAppDataRoaming pm ode_modules pmlibutilslifecycle.js:279:16)
  • 14 verbose stack at emitTwo (events.js:106:13)
  • 14 verbose stack at EventEmitter.emit (events.js:191:7)
  • 14 verbose stack at ChildProcess. (C:UsersvkaruthaAppDataRoaming pm ode_modules pmlibutilsspawn.js:40:14)
  • 14 verbose stack at emitTwo (events.js:106:13)
  • 14 verbose stack at ChildProcess.emit (events.js:191:7)
  • 14 verbose stack at maybeClose (internal/child_process.js:877:16)
  • 14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
  • 15 verbose pkgid [email protected]
  • 16 verbose cwd C:UsersvkaruthaDocumentsReacthello-world
  • 17 error Windows_NT 10.0.10586
  • 18 error argv "C:Program Files odejs ode.exe" "C:UsersvkaruthaAppDataRoaming pm ode_modules pmin pm-cli.js" "start"
  • 19 error node v6.9.3
  • 20 error npm v4.2.0
  • 21 error code ELIFECYCLE
  • 22 error errno 4294967295
  • 23 error [email protected] start: webpack-dev-server --hot
  • 23 error Exit status 4294967295
  • 24 error Failed at the [email protected] start script webpack-dev-server --hot .
  • 24 error Make sure you have the latest version of node.js and npm installed.
  • 24 error If you do, this is most likely a problem with the hello-world package,
  • 24 error not with npm itself.
  • 24 error Tell the author that this fails on your system:
  • 24 error webpack-dev-server --hot
  • 24 error You can get information on how to open an issue for this project with:
  • 24 error npm bugs hello-world
  • 24 error Or if that isn t available, you can get their info via:
  • 24 error npm owner ls hello-world
  • 24 error There is likely additional logging output above.
  • 25 verbose exit [ 4294967295, true ]

网址:config.js

var config = {
   entry:  ./main.js ,

   output: {
      path: ./ ,
      filename:  index.js ,
   },

   devServer: {
      inline: true,
      port: 8080
   },

   module: {
      loaders: [
         {
            test: /.jsx?$/,
            exclude: /node_modules/,
            loader:  babel ,

            query: {
               presets: [ es2015 ,  react ]
            }
         }
      ]
   }
}
问题回答

打字栏npm 跑道开始 alt npm rstart/code>

navigate to the same folder where the package.json is located type npm install to get all the dependencies. type npm run start

您是否拥有<条码>网页包装.config.js?

能否正式上网: 这就是我们如何看待(用你的话说):

var path = require( path );

module.exports = {
    context: path.resolve( src/main ),
    entry: {
        myapp:  ./dependencies.js ,
    },
    output: {
        path: path.resolve( build/dev ),
        filename:  [name].js 
    },
    module: {
        loaders: [
            {
                test: /.(png|jpg|jpeg|gif|svg|woff|woff2|eot|ttf)(.*)$/,
                loader:  url-loader?limit=100000 
            },
            {
                test: /.css$/,
                loader:  style-loader!css-loader 
            }
        ]
    }

};

贵国的网页包装有问题。 你们需要出口像这一类混凝土。

module.exports = {
   entry:  ./main.js ,

   output: {
      path: ./ ,
      filename:  index.js ,
   },

   devServer: {
      inline: true,
      port: 8080
   },

   module: {
      loaders: [
         {
            test: /.jsx?$/,
            exclude: /node_modules/,
            loader:  babel ,

            query: {
               presets: [ es2015 ,  react ]
            }
         }
      ]
   }
}




相关问题
How to make Sequelize use singular table names

I have an model called User but Sequelize looks for the table USERS whenever I am trying to save in the DB. Does anyone know how to set Sequelize to use singular table names? Thanks.

What is Node.js? [closed]

I don t fully get what Node.js is all about. Maybe it s because I am mainly a web based business application developer. What is it and what is the use of it? My understanding so far is that: The ...

Clientside going serverside with node.js

I`ve been looking for a serverside language for some time, and python got my attention somewhat. But as I already know and love javascript, I now want learn to code on the server with js and node.js. ...

Can I use jQuery with Node.js?

Is it possible to use jQuery selectors/DOM manipulation on the server-side using Node.js?

How do I escape a string for a shell command in node?

In nodejs, the only way to execute external commands is via sys.exec(cmd). I d like to call an external command and give it data via stdin. In nodejs there does yet not appear to be a way to open a ...

热门标签