Доброго времени суток. После команды npm start в консоли появляются ошибки. Как можно решить проблему?
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'start' ]
2 info using npm@2.11.3
3 info using node@v0.12.7
4 verbose config Skipping project config: C:\Users\Sergey/.npmrc. (matches userconfig)
5 verbose stack Error: ENOENT, open 'C:\Users\Sergey\package.json'
5 verbose stack at Error (native)
6 verbose cwd C:\Users\Sergey
7 error Windows_NT 6.1.7601
8 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
9 error node v0.12.7
10 error npm v2.11.3
11 error path C:\Users\Sergey\package.json
12 error code ENOENT
13 error errno -4058
14 error enoent ENOENT, open 'C:\Users\Sergey\package.json'
14 error enoent This is most likely not a problem with npm itself
14 error enoent and is related to npm not being able to find a file.
15 verbose exit [ -4058, true ]
npm start [-- <args>]
This runs an arbitrary command specified in the package's "start" property of its "scripts" object. If no "start" property is specified on the "scripts" object, it will run node server.js.
14 error enoent ENOENT, open 'C:\Users\Sergey\package.json'
Очевидно, нужно создать package.json и прописать там нужную команду.
Начал изучать БЭМ. при запуске npm снова происходит ошибка:
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'start' ]
2 info using npm@2.11.3
3 info using node@v0.12.7
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info prestart bem-project-stub@1.3.1
6 info start bem-project-stub@1.3.1
7 verbose unsafe-perm in lifecycle true
8 info bem-project-stub@1.3.1 Failed to exec start script
9 verbose stack Error: bem-project-stub@1.3.1 start: `enb server`
9 verbose stack Exit status 1
9 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:213:16)
9 verbose stack at EventEmitter.emit (events.js:110:17)
9 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:24:14)
9 verbose stack at ChildProcess.emit (events.js:110:17)
9 verbose stack at maybeClose (child_process.js:1015:16)
9 verbose stack at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
10 verbose pkgid bem-project-stub@1.3.1
11 verbose cwd C:\Users\Sergey\start-project
12 error Windows_NT 6.1.7601
13 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
14 error node v0.12.7
15 error npm v2.11.3
16 error code ELIFECYCLE
17 error bem-project-stub@1.3.1 start: `enb server`
17 error Exit status 1
18 error Failed at the bem-project-stub@1.3.1 start script 'enb server'.
18 error This is most likely a problem with the bem-project-stub package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error enb server
18 error You can get their info via:
18 error npm owner ls bem-project-stub
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]