Open ishu3101 opened 8 years ago
It looks like you have a very old version of node and NPM. Can you try updating to node >4 and npm > 3? If that doesn't help, please reopen!
I am getting this error message shown in the npm-debug.log
file after upgrading node & 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 'run',
1 verbose cli 'dev' ]
2 info using npm@3.8.3
3 info using node@v5.10.1
4 verbose run-script [ 'predev', 'dev', 'postdev' ]
5 info lifecycle Command@1.0.0~predev: Command@1.0.0
6 silly lifecycle Command@1.0.0~predev: no script for predev, continuing
7 info lifecycle Command@1.0.0~dev: Command@1.0.0
8 verbose lifecycle Command@1.0.0~dev: unsafe-perm in lifecycle true
9 verbose lifecycle Command@1.0.0~dev: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;C:\Users\%username%\Documents\Github\slash-command\node_modules\.bin;C:\Program Files\nodejs;C:\ruby215\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Gow\bin;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\bin;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Git\cmd;C:\PROGRA~2\Oracle\VirtualBox;C:\Users\%username%\AppData\Local\Pandoc\;C:\Python27;C:\Python33;C:\Python27\Scripts;C:\Python27\lib\site-packages\django\bin;C:\ruby193\bin;C:\ruby200\bin;C:\Users\%username%\AppData\Roaming\npm;C:\Users\%username%\bin;C:\Users\%username%\AppData\Local\atom\bin;C:\Program Files (x86)\Microsoft VS Code\bin
10 verbose lifecycle Command@1.0.0~dev: CWD: C:\Users\%username%\Documents\Github\slash-command
11 silly lifecycle Command@1.0.0~dev: Args: [ '/d /s /c',
11 silly lifecycle 'NODE_ENV=development ./node_modules/.bin/babel-node ./dev-env/dev.js' ]
12 silly lifecycle Command@1.0.0~dev: Returned: code: 1 signal: null
13 info lifecycle Command@1.0.0~dev: Failed to exec dev script
14 verbose stack Error: Command@1.0.0 dev: `NODE_ENV=development ./node_modules/.bin/babel-node ./dev-env/dev.js`
14 verbose stack Exit status 1
14 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:239:16)
14 verbose stack at emitTwo (events.js:100:13)
14 verbose stack at EventEmitter.emit (events.js:185:7)
14 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:24:14)
14 verbose stack at emitTwo (events.js:100:13)
14 verbose stack at ChildProcess.emit (events.js:185:7)
14 verbose stack at maybeClose (internal/child_process.js:850:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
15 verbose pkgid Command@1.0.0
16 verbose cwd C:\Users\%username%\Documents\Github\slash-command
17 error Windows_NT 6.1.7601
18 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev"
19 error node v5.10.1
20 error npm v3.8.3
21 error code ELIFECYCLE
22 error Command@1.0.0 dev: `NODE_ENV=development ./node_modules/.bin/babel-node ./dev-env/dev.js`
22 error Exit status 1
23 error Failed at the Command@1.0.0 dev script 'NODE_ENV=development ./node_modules/.bin/babel-node ./dev-env/dev.js'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the Command package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error NODE_ENV=development ./node_modules/.bin/babel-node ./dev-env/dev.js
23 error You can get information on how to open an issue for this project with:
23 error npm bugs Command
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls Command
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
Can you just running this?
$ ./node_modules/.bin/babel-node ./dev-env/dev.js
I'm on Windows by the way. I'm getting '.' is not recognized as an internal or external command, operable program or batch file.
when I run the command.
Is there a line number attached to that? My guess is that it has to do with relative path syntax differing between Mac and Windows.
On Mon, Apr 11, 2016 at 2:27 PM ishu3101 notifications@github.com wrote:
I'm on Windows by the way. I'm getting '.' is not recognized as an internal or external command, operable program or batch file. when I run the command.
— You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub https://github.com/jessepollak/command/issues/39#issuecomment-208570514
There is no line number attached to that. When I run the above command on git bash on windows, I get this error message.
Overriding 'node_modules/webpack/lib/JsonpMainTemplate.runtime.js'
Overriding 'node_modules/webpack/hot/log-apply-result.js'
fs.js:842
return binding.mkdir(pathModule._makeLong(path),
^
Error: ENOENT: no such file or directory, mkdir 'c:\Users\%username%\Documents\Github\slash-command\release\build'
at Error (native)
at Object.fs.mkdirSync (fs.js:842:18)
at Manifest.prepareBuildDir (index.js:37:8)
at Manifest.run (index.js:15:10)
at Object.<anonymous> (dev.js:12:10)
at Module._compile (module.js:413:34)
at loader (c:\Users\ishu\Documents\Github\slash-command\node_modules\babel-cli\node_modules\babel-register\lib\node.js:126:5)
at Object.require.extensions.(anonymous function) [as .js] (c:\Users\%username%\Documents\Github\slash-command\node_modules\babel-cli\node_modules\babel-register\lib\node.js:136:7)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
Did you ever resolve this build issue? Please reopen if you're still struggling with it — would love to help you get started.
No, still struggling with the setup. See my previous message above.
@ishu3101 I just pushed a fix (above) that should resolve this issue. can you pull and try building? thanks!
What do you mean by "Add command/build
" in your instruction for adding the development build of the extension to your browser.
When I run npm install
. I am getting this message.
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.12
npm WARN react-dom@0.14.8 requires a peer of react@^0.14.8 but none was installed.
OK, I just pushed another commit. Try pulling and npm installing again.
I mean:
chrome://extensions
command/build
directoryI still get the same message after running npm install
. I also don't see the command/build
directory.
I am trying to setup up command for development. When I run
npm install
followed bynpm run dev
I get the following error message shown in thenpm-debug.log
file.