Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install successfully on win10 #43

Open
binaryoak opened this issue Mar 28, 2018 · 10 comments
Open

Cannot install successfully on win10 #43

binaryoak opened this issue Mar 28, 2018 · 10 comments

Comments

@binaryoak
Copy link

Actual Behavior

cannot install the plugin on sublime for windows

Sublime Text console logs

JavaScript Enhancements plugin version: 0.16.11
node.js version: v4.2.2
npm version: 2.14.7
[False, '\nnpm WARN package.json @ No repository field.\nnpm WARN package.json @ No license field.\nnpm ERR! Windows_NT 10.0.16299\nnpm ERR! argv "E:\\Program Files\\nodejs\\node.exe" "E:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"\nnpm ERR! node v4.2.2\nnpm ERR! npm v2.14.7\n\nnpm ERR! version not found: [email protected]\nnpm ERR!\nnpm ERR! If you need help, you may report this error at:\nnpm ERR! https://github.com/npm/npm/issues\n\nnpm ERR! Please include the following file with any support request:\nnpm ERR! C:\Users\binaryoak\AppData\Roaming\Sublime Text 3\Packages\JavaScript Enhancements\npm-debug.log']
error: Error during installation: can't install npm dependencies for JavaScript Enhancements plugin.

The error COULD be caused by the npm permission access (EACCES error), so in this case you need to repair/install node.js and npm in a way that doesn't require "sudo" command.

For example you could use a Node Version Manager, such as "nvm" or "nodenv".

Try to run "npm install" inside the package of this plugin to see what you get.

Remember to open an issue on GitHub!

And I tried to run npm install inside the package, the log is:

npm WARN package.json @ No repository field.
npm WARN package.json @ No license field.
npm ERR! Windows_NT 10.0.16299
npm ERR! argv "E:\Program Files\nodejs\node.exe" "E:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v4.2.2
npm ERR! npm v2.14.7

npm ERR! version not found: [email protected]
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

seems that [email protected] is not available for windows

Specifications

  • Sublime Text 3 build:3143
  • OS: win10x64
  • JavaScript Enhancements version: 0.16.11
@pichillilorenzo
Copy link
Owner

pichillilorenzo commented Mar 28, 2018

This plugin and Flow requires node.js 6 or upper (it is written in the README.md and in the Wiki). Your node version is 4.2.2, so I think this is the problem

@binaryoak
Copy link
Author

oh, I see, I will update my node and try again

@binaryoak
Copy link
Author

still, cannot found the [email protected],

node -v
v8.10.0

npm -v
5.6.0

npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm ERR! code ETARGET
npm ERR! notarget No matching version found for [email protected]
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

@pichillilorenzo
Copy link
Owner

This is weird.. flow-bin 0.68.0 is published on npm: https://www.npmjs.com/package/flow-bin
I have also tested it on windows 10 and it works. Have you tried to reinstall the plugin?

@binaryoak
Copy link
Author

I will retry it tomorrow

@binaryoak
Copy link
Author

same error.

JavaScript Enhancements plugin version: 0.16.11
reloading settings Packages/User/Preferences.sublime-settings
node.js version: v8.10.0
npm version: 5.6.0
[False, "\nnpm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js\nnpm ERR! code ETARGET\nnpm ERR! notarget No matching version found for [email protected]\nnpm ERR! notarget In most cases you or one of your dependencies are requesting\nnpm ERR! notarget a package version that doesn't exist.\n\n
error: Error during installation: can't install npm dependencies for JavaScript Enhancements plugin.

@pichillilorenzo
Copy link
Owner

pichillilorenzo commented Mar 29, 2018

Try to install flow globally running npm install -g flow-bin. Can you install it or you get the same error?
If you get the same error, try to install another version of node such as the latest one.

@binaryoak
Copy link
Author

flow was installed but with version 0.47.0

@pichillilorenzo
Copy link
Owner

Wow really weird! I don't know what is going on, sorry.. Maybe there are some problems with your npm, but I really don't know

@AllenMax
Copy link

I am facing a similar issue, the plugin had downloaded properly but after restarting sublime i cant seem to use the auto complete functionality

the following is my console logs

DPI mode: per-monitor v2
startup, version: 3176 windows x64 channel: stable
executable: /C/Program Files/Sublime Text 3/sublime_text.exe
working dir: /C/Program Files/Sublime Text 3
packages path: /C/Users/allen/AppData/Roaming/Sublime Text 3/Packages
state path: /C/Users/allen/AppData/Roaming/Sublime Text 3/Local
zip path: /C/Program Files/Sublime Text 3/Packages
zip path: /C/Users/allen/AppData/Roaming/Sublime Text 3/Installed Packages
ignored_packages: ["Vintage"]
pre session restore time: 0.0954189
startup time: 0.127419
first paint time: 0.127419
reloading plugin Default.arithmetic
reloading plugin Default.auto_indent_tag
reloading plugin Default.block
reloading plugin Default.colors
reloading plugin Default.comment
reloading plugin Default.convert_color_scheme
reloading plugin Default.convert_syntax
reloading plugin Default.copy_path
reloading plugin Default.delete_word
reloading plugin Default.detect_indentation
reloading plugin Default.duplicate_line
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.indentation
reloading plugin Default.install_package_control
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_context_url
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.profile
reloading plugin Default.quick_panel
reloading plugin Default.rename
reloading plugin Default.run_syntax_tests
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.settings
reloading plugin Default.show_scope_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.swap_line
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.trim_trailing_white_space
reloading plugin Default.ui
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin ShellScript.ShellScript
reloading plugin 0_package_control_loader.00-package_control
reloading plugin 0_package_control_loader.10-shellenv
reloading plugin Package Control.1_reloader
reloading plugin Package Control.2_bootstrap
reloading plugin Package Control.Package Control
reloading plugin JavaScript Enhancements.main
plugins loaded
starting flow ide server: ['C:\Users\allen\AppData\Roaming\Sublime Text 3\Packages\JavaScript Enhancements\node_modules\.bin\flow.cmd', 'ide', '--protocol', 'very-unstable', '--from', 'sublime_text', '--root', 'C:\Users\allen\AppData\Roaming\Sublime Text 3\Packages\JavaScript Enhancements\src\libs\flow']
JavaScript Enhancements plugin version: 0.16.20
node.js version: v8.11.3
npm version: 5.6.0
Package Control: Skipping automatic upgrade, last run at 2018-10-20 22:05:14, next run at 2018-10-20 23:05:14 or after

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants