[Enter steps to reproduce below:]
Atom Version: 1.7.0
System: Microsoft Windows 10 Education
Thrown From: settings-view package, v0.235.1
Uncaught TypeError: Cannot read property 'substr' of null
At C:\Users\Chertpong\AppData\Local\atom\app-1.7.0\resources\app.asar\node_modules\settings-view\lib\package-card.js:709
TypeError: Cannot read property 'substr' of null
at C:\Users\Chertpong\AppData\Local\atom\app-1.7.0\resources\app.asar\node_modules\settings-view\lib\package-card.js:709:80
at C:\Users\Chertpong\AppData\Local\atom\app-1.7.0\resources\app.asar\node_modules\settings-view\lib\package-manager.js:376:51
at C:\Users\Chertpong\AppData\Local\atom\app-1.7.0\resources\app.asar\node_modules\settings-view\lib\package-manager.js:403:20
at exit (C:\Users\Chertpong\AppData\Local\atom\app-1.7.0\resources\app.asar\node_modules\settings-view\lib\package-manager.js:73:16)
at triggerExitCallback (C:\Users\Chertpong\AppData\Local\atom\app-1.7.0\resources\app.asar\src\buffered-process.js:215:47)
at ChildProcess.<anonymous> (C:\Users\Chertpong\AppData\Local\atom\app-1.7.0\resources\app.asar\src\buffered-process.js:237:18)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
-5:42.5.0 settings-view:open (atom-text-editor.editor.is-focused)
-5:36.6.0 core:close (atom-text-editor.editor.mini.is-focused)
-5:34.5.0 settings-view:open (atom-text-editor.editor.is-focused)
2x -5:31 core:backspace (atom-text-editor.editor.mini.is-focused)
-4:55 application:open-your-keymap (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
-4:07.7.0 settings-view:check-for-package-updates (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
{
"core": {}
}
# User
atom-ternjs, v0.13.2
highlight-selected, v0.11.2
linter, v1.11.4
linter-eslint, vundefined
minimap, v4.21.0
minimap-highlight-selected, v4.4.0
open-recent, v5.0.0
# Dev
No dev packages
The same happens in version 1.7.1, trying to update atom-typescript.
The same happens in version 1.7.1
The same happens in version 1.7.1 (Mac) while updating linter.
The same on 1.7.1, Windows 10
Same, 1.7.1 Windows 10 attempting to update "script".
[Enter steps to reproduce below:]
Atom Version: 1.7.1
System: Microsoft Windows 10 Pro
Thrown From: settings-view package, v0.235.1
Uncaught TypeError: Cannot read property 'substr' of null
At C:\Users\cjbro\AppData\Local\atom\app-1.7.1\resources\app.asar\node_modules\settings-view\lib\package-card.js:709
TypeError: Cannot read property 'substr' of null
at C:\Users\cjbro\AppData\Local\atom\app-1.7.1\resources\app.asar\node_modules\settings-view\lib\package-card.js:709:80
at C:\Users\cjbro\AppData\Local\atom\app-1.7.1\resources\app.asar\node_modules\settings-view\lib\package-manager.js:376:51
at C:\Users\cjbro\AppData\Local\atom\app-1.7.1\resources\app.asar\node_modules\settings-view\lib\package-manager.js:403:20
at exit (C:\Users\cjbro\AppData\Local\atom\app-1.7.1\resources\app.asar\node_modules\settings-view\lib\package-manager.js:73:16)
at triggerExitCallback (C:\Users\cjbro\AppData\Local\atom\app-1.7.1\resources\app.asar\src\buffered-process.js:215:47)
at ChildProcess.<anonymous> (C:\Users\cjbro\AppData\Local\atom\app-1.7.1\resources\app.asar\src\buffered-process.js:237:18)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
-4:53.3.0 command-palette:toggle (atom-text-editor.editor.is-focused)
-4:50.1.0 core:confirm (atom-text-editor.editor.mini.is-focused)
-4:50.1.0 settings-view:uninstall-packages (atom-text-editor.editor)
12x -4:46.1.0 core:backspace (atom-text-editor.editor.mini.is-focused)
-3:44.3.0 settings-view:check-for-package-updates (atom-workspace.workspace.scrollbars-visible-always.seti-ui-no-icons.panel-shadows.panel-contrast.use-animations.compact-tree-view.theme-atom-material-syntax.theme-atom-material-ui.has-custom-icons)
{
"core": {
"autoHideMenuBar": true,
"disabledPackages": [
"linter-htmlhint",
"atom-beautify"
],
"packagesWithKeymapsDisabled": [
"emmet",
"atom-live-server"
],
"themes": [
"atom-material-ui",
"atom-material-syntax"
]
}
}
# User
atom-material-syntax, v0.4.6
atom-material-ui, v1.2.10
autoclose-html, v0.23.0
autocomplete-php, v0.3.7
autocomplete-python, v1.7.2
color-picker, v2.1.1
docblockr, v0.7.3
emmet, v2.4.3
file-icons, v1.7.2
highlight-selected, v0.11.2
linter, v1.11.4
linter-flake8, v1.13.0
linter-php, v1.2.0
minimap, v4.22.1
php-cs-fixer, v2.5.6
php-debug, v0.2.2
python-autopep8, v0.1.3
python-tools, v0.6.7
# Dev
No dev packages
+1, also seeing this on iMac w/ intel i7 2.8 GHz processor, 16 GB RAM, Mac OS X 10.11.4, and Atom Editor v1.7.1, and settings-view package v.0.235.1.
best,
โ faddah
portland, oregon, u.s.a.
+1
apm update could solve this
apm update could solve this
sudo apm update solved my problem, thank you!
Same here with Windows 8.1 and Atom 1.7.1.
apm update solved the problem.
apm update doesn't work to me :cry:
+1 win 10
Tried apm update but no luck. Output says:
Package Updates Available (0)
โโโ (empty)
I have this bug in Linux, Ubuntu 15.10, not only in Windows :+1:
Same here on Debian 8 64 bit. I tried sudo apm update, but:
Package Updates Available (0)
โโโ (empty)
Same here on Windows 10 64 bit with Atom 1.7.2. Ran apm update, but:
Package Updates Available (0)
โโโ (empty)
Maybe it will help somebody.
Windows 10
I tried to apm update using Git Bash (as I use it all the time) from my working directory and also got
Package Updates Available (0)
โโโ (empty)
Then I tried to launch CMD (it starts by default in C:/Users/%username%) and then apm update worked fine.
file-icons package.file-icons package.I only had the file-icons package to update in the settings-view when doing this so maybe clicking the update all button was not needed. But atom never realizes an update has happened and gets stuck when updating packages so I have developed a habit of clicking all the buttons just to make sure.
Never seen this issue before so maybe it doesn't happen every time or is something new.
Atom Version: 1.7.2
System: Microsoft Windows 7 Professional
Thrown From: settings-view package, v0.235.1
Uncaught TypeError: Cannot read property 'substr' of null
At C:\Users\lineri\AppData\Local\atom\app-1.7.2\resources\app.asar\node_modules\settings-view\lib\package-card.js:709
TypeError: Cannot read property 'substr' of null
at C:\Users\lineri\AppData\Local\atom\app-1.7.2\resources\app.asar\node_modules\settings-view\lib\package-card.js:709:80
at C:\Users\lineri\AppData\Local\atom\app-1.7.2\resources\app.asar\node_modules\settings-view\lib\package-manager.js:376:51
at C:\Users\lineri\AppData\Local\atom\app-1.7.2\resources\app.asar\node_modules\settings-view\lib\package-manager.js:403:20
at exit (C:\Users\lineri\AppData\Local\atom\app-1.7.2\resources\app.asar\node_modules\settings-view\lib\package-manager.js:73:16)
at triggerExitCallback (C:\Users\lineri\AppData\Local\atom\app-1.7.2\resources\app.asar\src\buffered-process.js:215:47)
at ChildProcess.<anonymous> (C:\Users\lineri\AppData\Local\atom\app-1.7.2\resources\app.asar\src\buffered-process.js:237:18)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
-0:27.3.0 settings-view:open (atom-pane.pane.active)
{
"core": {
"autoHideMenuBar": true,
"destroyEmptyPanes": false,
"disabledPackages": [
"atom-no-tab-close-button",
"browser-plus",
"simple-drag-drop-text",
"clipboard-history"
],
"openEmptyEditorOnStart": false,
"themes": [
"atom-dark-ui",
"oceanic-next"
]
}
}
# User
atom-clock, v0.0.8
color-picker, v2.1.1
column-select, v0.2.0
file-icons, v1.7.8
highlight-line, v0.11.1
highlight-selected, v0.11.2
jshint, v1.8.5
linter, v1.11.4
linter-php, v1.2.0
minimap, v4.23.2
minimap-autohide, v0.10.1
minimap-find-and-replace, v4.5.1
minimap-highlight-selected, v4.4.0
minimap-pigments, v0.2.0
oceanic-next, v0.1.2
pigments, v0.26.0
Sublime-Style-Column-Selection, v1.5.1
tab-title, v0.3.3
# Dev
No dev packages
same here atom 1.7.3 @ OS X 10.11.4
TypeError: Cannot read property 'substr' of null
at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/package-card.js:709:80
at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/package-manager.js:376:51
at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/package-manager.js:403:20
at exit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/package-manager.js:73:16)
at triggerExitCallback (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:215:47)
at /Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:222:18
at Socket.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:100:18)
at emitOne (events.js:82:20)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:469:12)
and
TypeError: Cannot read property 'substr' of null
at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/package-card.js:709:80
at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/package-manager.js:376:51
at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/package-manager.js:403:20
at exit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/package-manager.js:73:16)
at triggerExitCallback (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:215:47)
at /Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:222:18
at Socket.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:100:18)
at emitOne (events.js:82:20)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:469:12)
Happened again when using the same steps so can reproduce.
Uncaught TypeError: Cannot read property 'substr' of null
At C:\Users\lineri\AppData\Local\atom\app-1.7.3\resources\app.asar\node_modules\settings-view\lib\package-card.js:709
TypeError: Cannot read property 'substr' of null
at C:\Users\lineri\AppData\Local\atom\app-1.7.3\resources\app.asar\node_modules\settings-view\lib\package-card.js:709:80
at C:\Users\lineri\AppData\Local\atom\app-1.7.3\resources\app.asar\node_modules\settings-view\lib\package-manager.js:376:51
at C:\Users\lineri\AppData\Local\atom\app-1.7.3\resources\app.asar\node_modules\settings-view\lib\package-manager.js:403:20
at exit (C:\Users\lineri\AppData\Local\atom\app-1.7.3\resources\app.asar\node_modules\settings-view\lib\package-manager.js:73:16)
at triggerExitCallback (C:\Users\lineri\AppData\Local\atom\app-1.7.3\resources\app.asar\src\buffered-process.js:215:47)
at C:\Users\lineri\AppData\Local\atom\app-1.7.3\resources\app.asar\src\buffered-process.js:229:18
at Socket.<anonymous> (C:\Users\lineri\AppData\Local\atom\app-1.7.3\resources\app.asar\src\buffered-process.js:100:18)
at emitOne (events.js:82:20)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:469:12)
Win7: apm update did not work for me.
C:\Users\rpolisetti.atom\packages>apm update
Package Updates Available (4)
โโโ atom-typescript 8.8.1 -> 8.9.1
โโโ minimap 4.21.0 -> 4.23.2
โโโ quick-highlight 0.3.10 -> 0.4.0
โโโ vim-mode-plus 0.34.0 -> 0.38.0
Would you like to install these updates? (yes) yes
Installing [email protected] to C:\Users\rpolisetti.atom\packages failed
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Users\rpolisetti\AppData\Local\atom\app-1.7.3\resources\app\apm\bin\node.exe" "C:\Users\rpolisetti\AppData\Local\atom\app-1.7.3\resources\app\apm\node_modules\npm\bin\npm-cli.js" "--globalconfig" "C:\Users\rpolisetti.atom.apm.apmrc" "--userconfig" "C:\Users\rpolisetti.atom.apmrc" "install" "C:\Users\RPOLIS~1\AppData\Local\Temp\d-11643-10440-jo0jdc\package.tgz" "--target=0.36.8" "--arch=ia32" "--msvs_version=2013"
npm ERR! node v0.10.40
npm ERR! npm v2.13.3
npm ERR! file C:\Users\rpolisetti.atom.apm\atom-space-pen-views\2.2.0\package\package.json
npm ERR! code EJSONPARSE
npm ERR! Failed to parse json
npm ERR! Unexpected token '\u0000' at 1:1
npm ERR!
npm ERR! ^
npm ERR! File: C:\Users\rpolisetti.atom.apm\atom-space-pen-views\2.2.0\package\package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse
C:\Users\rpolisetti.atom\packages>
With last release it was fixed the problem!! :+1: :smile:
I am on atom 1.7.3 and still has the same issue.
Which latest release do you have?
Thanks.
steps to reproduce :
Package Updates Available (3)
โโโ autocomplete-go 1.0.6 -> 1.0.8
โโโ firefox-dev-dark-syntax 2.2.0 -> 2.4.0
โโโ minimap 4.22.1 -> 4.23.3
Error in the terminal
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp http GET https://atom.io/download/atom-shell/v0.36.8/node-v0.36.8.tar.gz
gyp WARN install got an error, rolling back install
gyp ERR! install error
gyp ERR! stack Error: tunneling socket could not be established, cause=Parse Error
gyp ERR! stack at ClientRequest.onError (/usr/share/atom/resources/app/apm/node_modules/npm/node_modules/request/node_modules/tunnel-agent/index.js:174:17)
gyp ERR! stack at ClientRequest.g (events.js:180:16)
gyp ERR! stack at ClientRequest.emit (events.js:95:17)
gyp ERR! stack at Socket.socketOnData (http.js:1589:9)
gyp ERR! stack at TCP.onread (net.js:528:27)
gyp ERR! System Linux 3.13.0-37-generic
gyp ERR! command "/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "install" "--target=0.36.8" "--dist-url=https://atom.io/download/atom-shell" "--arch=x64" "--ensure" "--proxy=http://$$$$$$$:*************************@##.##.###.##:800/"
gyp ERR! cwd /home/peter/.atom
gyp ERR! node -v v0.10.40
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok
Atom Version: 1.7.3
System: Linux Mint
Thrown From: settings-view package, v0.235.1
Uncaught TypeError: Cannot read property 'substr' of null
At /usr/share/atom/resources/app.asar/node_modules/settings-view/lib/package-card.js:709
TypeError: Cannot read property 'substr' of null
at /usr/share/atom/resources/app.asar/node_modules/settings-view/lib/package-card.js:709:80
at /usr/share/atom/resources/app.asar/node_modules/settings-view/lib/package-manager.js:376:51
at /usr/share/atom/resources/app.asar/node_modules/settings-view/lib/package-manager.js:403:20
at exit (/usr/share/atom/resources/app.asar/node_modules/settings-view/lib/package-manager.js:73:16)
at triggerExitCallback (/usr/share/atom/resources/app.asar/src/buffered-process.js:215:47)
at /usr/share/atom/resources/app.asar/src/buffered-process.js:222:18
at Socket.<anonymous> (/usr/share/atom/resources/app.asar/src/buffered-process.js:100:18)
at emitOne (events.js:82:20)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:469:12)
-1:43.8.0 core:paste (atom-text-editor.editor.is-focused)
-1:30.3.0 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)
6x -1:27.4.0 core:move-down (atom-text-editor.editor.is-focused)
-1:22.3.0 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)
31x -1:21.6.0 core:move-left (atom-text-editor.editor.is-focused)
-1:19 core:move-right (atom-text-editor.editor.is-focused)
11x -1:16.1.0 core:select-right (atom-text-editor.editor.is-focused)
-1:02.6.0 editor:move-to-beginning-of-word (atom-text-editor.editor.is-focused)
-1:02.1.0 core:move-right (atom-text-editor.editor.is-focused)
11x -1:00.5.0 core:select-right (atom-text-editor.editor.is-focused)
-0:55.9.0 editor:consolidate-selections (atom-text-editor.editor.is-focused)
-0:55.9.0 core:cancel (atom-text-editor.editor.is-focused)
-0:53.1.0 core:save (atom-text-editor.editor.is-focused)
-0:09.5.0 settings-view:open (atom-text-editor.editor.is-focused)
{
"core": {
"audioBeep": false,
"autoHideMenuBar": true,
"disabledPackages": [
"language-gcode",
"linter-golint",
"autocomplete-atom-api",
"spell-check"
],
"projectHome": "/home/peter/gocode",
"themes": [
"newton-dark-ui",
"newton-dark-syntax"
]
}
}
# User
autocomplete-go, v1.0.6
builder-go, v1.0.0
environment, v1.2.0
fonts, v1.2.0
go-config, v1.1.4
go-get, v1.0.3
go-plus, v4.1.0
gofmt, v1.1.6
gometalinter-linter, v1.1.0
gorename, v1.0.2
highlight-selected, v0.11.2
language-arduino, v0.4.1
linter, v1.11.4
linter-golinter, v1.2.0
linter-govet, v0.1.5
minimap, v4.22.1
navigator-godef, v1.0.3
newton-dark-syntax, v1.1.5
newton-dark-ui, v1.0.9
tester-go, v1.0.4
# Dev
No dev packages
Hi @venkatpolisetti !, I have Ubuntu Mate 15.10. I used webupd8's repository to install and update Atom. The information of this package is:
Package: atom
Priority: optional
Section: devel
Installed-Size: 54871
Maintainer: Alin Andrei [email protected]
Architecture: amd64
Version: 1.7.3-1~webupd8~0
I hope that this can help! :+1:
I have the same with Atom 1.7.3 on Windows 10 (64 bit).
+1
Ubuntu 15.10
Atom 1.7.3
Trying to update to Hydrogen 0.9.1 via Atom Update All
Uncaught TypeError: Cannot read property 'substr' of null
/usr/share/atom/resources/app.asar/node_modules/settings-view/lib/package-card.js:709
Hide Stack Trace
TypeError: Cannot read property 'substr' of null
at /usr/share/atom/resources/app.asar/node_modules/settings-view/lib/package-card.js:709:80
at /usr/share/atom/resources/app.asar/node_modules/settings-view/lib/package-manager.js:376:51
at /usr/share/atom/resources/app.asar/node_modules/settings-view/lib/package-manager.js:403:20
at exit (/usr/share/atom/resources/app.asar/node_modules/settings-view/lib/package-manager.js:73:16)
at triggerExitCallback (/usr/share/atom/resources/app.asar/src/buffered-process.js:215:47)
at /usr/share/atom/resources/app.asar/src/buffered-process.js:229:18
at Socket.
at emitOne (events.js:82:20)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:469:12)
The error was thrown from the settings-view package. This issue has already been reported.
Just updated to 8.10.1, no issues.
I had upgraded to the previous version by removing the buggy package manually first, though.
Looks like the problem has been resolved in the previous version.
I received this error when trying to update a package which had a GitHub repository that had moved elsewhere. Using apm update, I received the correct error description: 404.
This looks like a duplicate of #753, I think.
Windows 7, Atom 1.7.1 (about page says this is latest version), apm update had no updates available, happened while installing (or rather attempting to install) autocomplete-go.
C:\Users\woldan\AppData\Local\atom\app-1.7.1\resources\app.asar\node_modulessettings-view\lib\package-card.js:709
Hide Stack Trace
TypeError: Cannot read property 'substr' of null
at C:\Users\woldan\AppData\Local\atom\app-1.7.1\resources\app.asar\node_modulessettings-view\lib\package-card.js:709:80
at C:\Users\woldan\AppData\Local\atom\app-1.7.1\resources\app.asar\node_modulessettings-view\lib\package-manager.js:376:51
at C:\Users\woldan\AppData\Local\atom\app-1.7.1\resources\app.asar\node_modulessettings-view\lib\package-manager.js:403:20
at exit (C:\Users\woldan\AppData\Local\atom\app-1.7.1\resources\app.asar\node_modulessettings-view\lib\package-manager.js:73:16)
at triggerExitCallback (C:\Users\woldan\AppData\Local\atom\app-1.7.1\resources\app.asar\src\buffered-process.js:215:47)
at ChildProcess.
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
OSX El Cap, same issue
It seems like I won't feel alone with this anoying issue ๐
OSX 10.11.5 (_but seems like not relative to OS_)
By the way is there a way to downgrade atom version It could be a temporary fix waiting for a real fix to be available?
@MacKentoch go to the install folder and delete the plugin, then install the newest version. The bug isn't there AFAICT.
Confirmed that manually deleting the folder and re-installing resolves the issue, for me.
@tonyeung Thanks! ๐
Doing that I discovered (_maybe I was the only one on earth not to know_ :sweat_smile:)
config folder in atom settings.@MacKentoch no worries. I manually navigated to the folder the first time i needed to screw around with plugins.
At a glance it seems like there's an issue where the new version is undefined after failing to update a package, so Settings View tries to fall back to the new commit SHA, which is also undefined since we're not updating based on SHAs, but rather on tag releases. In other words this error is covering up the _actual_ installation error...
https://github.com/atom/settings-view/blob/v0.235.1/lib/package-card.coffee#L442
/cc @BinaryMuse, @kuychaco
The same happens in version 1.8.0 ( Ubuntu 16.04 )
I solved the problem by changing the permissions of the "packages" folder, it seems the "root" user owned some packages
The solution in Ubuntu: sudo chown -R $USER:$USER .atom/packages
Same issue here but with Windows 10, 64bit
Same issue here on Ubuntu 16.04. Atom: 1.7.3.
I solved it by running sudo apm update. @SaidElBakkali: which solution do you think is preferable?
Currently I'm on 1.8.0, and I am no longer experiencing any issues with this.
Package atom-1.8.0-2.gitf89b273.fc23.x86_64 from mosquito/atom in Fedora 23. None of the workarounds works for me.
> apm update
Package Updates Available (1)
โโโ linter 1.11.11 -> 1.11.14
Would you like to install these updates? (yes)
Installing [email protected] to /home/yajo/.atom/packages
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp ERR! install error
gyp ERR! stack Error: Invalid version number: undefined
gyp ERR! stack at install (/usr/lib/node_modules/node-gyp/lib/install.js:51:21)
gyp ERR! stack at Object.self.commands.(anonymous function) [as install] (/usr/lib/node_modules/node-gyp/lib/node-gyp.js:66:37)
gyp ERR! stack at run (/usr/lib/node_modules/node-gyp/bin/node-gyp.js:72:30)
gyp ERR! stack at Object.<anonymous> (/usr/lib/node_modules/node-gyp/bin/node-gyp.js:133:1)
gyp ERR! stack at Module._compile (module.js:409:26)
gyp ERR! stack at Object.Module._extensions..js (module.js:416:10)
gyp ERR! stack at Module.load (module.js:343:32)
gyp ERR! stack at Function.Module._load (module.js:300:12)
gyp ERR! stack at Function.Module.runMain (module.js:441:10)
gyp ERR! stack at startup (node.js:139:18)
gyp ERR! System Linux 4.5.6-200.fc23.x86_64
gyp ERR! command "/usr/lib/node_modules/atom-package-manager/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "install" "--target=undefined" "--dist-url=https://atom.io/download/atom-shell" "--arch=x64" "--ensure"
gyp ERR! cwd /home/yajo/.atom
gyp ERR! node -v v4.4.5
gyp ERR! node-gyp -v v0.10.6
gyp ERR! not ok
@Yajo what work arounds have you tried?
sudo chown $USER:$USER ~/.atom and https://github.com/atom/settings-view/issues/766#issuecomment-211177460
@Yajo have you tried uninstalling/deleting the package? the newer package versions don't have the same issue afaict.
@Yajo Try running apm update as root, worked for me.
apm update solved my problem
No workarounds seem to work:
> apm update
Package Updates Available (4)
โโโ activate-power-mode 0.5.2 -> 0.7.0
โโโ linter 1.11.11 -> 1.11.14
โโโ linter-xmllint 1.3.4 -> 1.3.5
โโโ minimap 4.24.6 -> 4.24.7
Would you like to install these updates? (yes)
Installing [email protected] to /home/yajo/.atom/packages
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp ERR! install error
gyp ERR! stack Error: Invalid version number: undefined
gyp ERR! stack at install (/usr/lib/node_modules/node-gyp/lib/install.js:51:21)
gyp ERR! stack at Object.self.commands.(anonymous function) [as install] (/usr/lib/node_modules/node-gyp/lib/node-gyp.js:66:37)
gyp ERR! stack at run (/usr/lib/node_modules/node-gyp/bin/node-gyp.js:72:30)
gyp ERR! stack at Object.<anonymous> (/usr/lib/node_modules/node-gyp/bin/node-gyp.js:133:1)
gyp ERR! stack at Module._compile (module.js:409:26)
gyp ERR! stack at Object.Module._extensions..js (module.js:416:10)
gyp ERR! stack at Module.load (module.js:343:32)
gyp ERR! stack at Function.Module._load (module.js:300:12)
gyp ERR! stack at Function.Module.runMain (module.js:441:10)
gyp ERR! stack at startup (node.js:139:18)
gyp ERR! System Linux 4.5.6-200.fc23.x86_64
gyp ERR! command "/usr/lib/node_modules/atom-package-manager/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "install" "--target=undefined" "--dist-url=https://atom.io/download/atom-shell" "--arch=x64" "--ensure"
gyp ERR! cwd /home/yajo/.atom
gyp ERR! node -v v4.4.5
gyp ERR! node-gyp -v v0.10.6
gyp ERR! not ok
> apm uninstall activate-power-mode
Uninstalling activate-power-mode โ
> apm install activate-power-mode
Installing activate-power-mode to /home/yajo/.atom/packages
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp ERR! install error
gyp ERR! stack Error: Invalid version number: undefined
gyp ERR! stack at install (/usr/lib/node_modules/node-gyp/lib/install.js:51:21)
gyp ERR! stack at Object.self.commands.(anonymous function) [as install] (/usr/lib/node_modules/node-gyp/lib/node-gyp.js:66:37)
gyp ERR! stack at run (/usr/lib/node_modules/node-gyp/bin/node-gyp.js:72:30)
gyp ERR! stack at Object.<anonymous> (/usr/lib/node_modules/node-gyp/bin/node-gyp.js:133:1)
gyp ERR! stack at Module._compile (module.js:409:26)
gyp ERR! stack at Object.Module._extensions..js (module.js:416:10)
gyp ERR! stack at Module.load (module.js:343:32)
gyp ERR! stack at Function.Module._load (module.js:300:12)
gyp ERR! stack at Function.Module.runMain (module.js:441:10)
gyp ERR! stack at startup (node.js:139:18)
gyp ERR! System Linux 4.5.6-200.fc23.x86_64
gyp ERR! command "/usr/lib/node_modules/atom-package-manager/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "install" "--target=undefined" "--dist-url=https://atom.io/download/atom-shell" "--arch=x64" "--ensure"
gyp ERR! cwd /home/yajo/.atom
gyp ERR! node -v v4.4.5
gyp ERR! node-gyp -v v0.10.6
gyp ERR! not ok
[1]> sudo apm update
[sudo] password for yajo:
Package Updates Available (0)
โโโ (empty)
> apm update
Package Updates Available (3)
โโโ linter 1.11.11 -> 1.11.14
โโโ linter-xmllint 1.3.4 -> 1.3.5
โโโ minimap 4.24.6 -> 4.24.7
Would you like to install these updates? (yes)
Installing [email protected] to /home/yajo/.atom/packages
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp ERR! install error
gyp ERR! stack Error: Invalid version number: undefined
gyp ERR! stack at install (/usr/lib/node_modules/node-gyp/lib/install.js:51:21)
gyp ERR! stack at Object.self.commands.(anonymous function) [as install] (/usr/lib/node_modules/node-gyp/lib/node-gyp.js:66:37)
gyp ERR! stack at run (/usr/lib/node_modules/node-gyp/bin/node-gyp.js:72:30)
gyp ERR! stack at Object.<anonymous> (/usr/lib/node_modules/node-gyp/bin/node-gyp.js:133:1)
gyp ERR! stack at Module._compile (module.js:409:26)
gyp ERR! stack at Object.Module._extensions..js (module.js:416:10)
gyp ERR! stack at Module.load (module.js:343:32)
gyp ERR! stack at Function.Module._load (module.js:300:12)
gyp ERR! stack at Function.Module.runMain (module.js:441:10)
gyp ERR! stack at startup (node.js:139:18)
gyp ERR! System Linux 4.5.6-200.fc23.x86_64
gyp ERR! command "/usr/lib/node_modules/atom-package-manager/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "install" "--target=undefined" "--dist-url=https://atom.io/download/atom-shell" "--arch=x64" "--ensure"
gyp ERR! cwd /home/yajo/.atom
gyp ERR! node -v v4.4.5
gyp ERR! node-gyp -v v0.10.6
gyp ERR! not ok
oh sorry do you mean uninstalling settings-view?
@Yajo apm uninstall <packagename> and if that fails, just remove (delete) the package from your atom/packages folder. On windows the path is C:\Users\[username]\AppData\Local\atom, I believe the folder is in your home directory in linux.
I even deleted all ~/.atom and reinstalled atom. Still this:
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp ERR! install error
gyp ERR! stack Error: Invalid version number: undefined
gyp ERR! stack at install (/usr/lib/node_modules/node-gyp/lib/install.js:51:21)
gyp ERR! stack at Object.self.commands.(anonymous function) [as install] (/usr/lib/node_modules/node-gyp/lib/node-gyp.js:66:37)
gyp ERR! stack at run (/usr/lib/node_modules/node-gyp/bin/node-gyp.js:72:30)
gyp ERR! stack at Object.<anonymous> (/usr/lib/node_modules/node-gyp/bin/node-gyp.js:133:1)
gyp ERR! stack at Module._compile (module.js:409:26)
gyp ERR! stack at Object.Module._extensions..js (module.js:416:10)
gyp ERR! stack at Module.load (module.js:343:32)
gyp ERR! stack at Function.Module._load (module.js:300:12)
gyp ERR! stack at Function.Module.runMain (module.js:441:10)
gyp ERR! stack at startup (node.js:139:18)
gyp ERR! System Linux 4.5.6-200.fc23.x86_64
gyp ERR! command "/usr/lib/node_modules/atom-package-manager/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "install" "--target=undefined" "--dist-url=https://atom.io/download/atom-shell" "--arch=x64" "--ensure"
gyp ERR! cwd /home/yajo/.atom
gyp ERR! node -v v4.4.5
gyp ERR! node-gyp -v v0.10.6
gyp ERR! not ok
After doing these tests, I have lost some packages and cannot install now... Help please :sob:
@Yajo I don't understand why you would delete the whole thing. It looks like you might have a problem with nodegyp. My guess is you should check there first. At this point I'd say back up your settings and reinstall atom.
Also had this issue (on Win10x64). For me uninstalling atom (including renaming/deleting all .atom and atom folders in my user and appdata directories) and reinstalling from the platformio-installer worked. I did update platformio from the command line with pip before attempting to update atom and plugins from the settings->update page.
I deleted everything just to make sure it's not a configuration or installation problem. What should I check with nodegyp?
I had read the log wrong. There doesn't seem to be any issues with node-gyp. Since you've already deleted "everything", try installing again and see what happens.
OK now I get it. It is some failure with mosquito/atom pakcage. Installing RPM from atom.io works fine.
(Had this in the Atom IDE (after restart) when trying to update atom-wallaby from 1.0.8 to 1.0.9. Using apm update worked.)
apm update did not work for me on Windows 7
C:>apm update
Package Updates Available (6)
โโโ atom-typescript 8.8.1 -> 10.1.5
โโโ linter 1.11.4 -> 1.11.14
โโโ minimap 4.21.0 -> 4.24.7
โโโ minimap-cursorline 0.1.0 -> 0.2.0
โโโ quick-highlight 0.3.10 -> 0.5.0
โโโ vim-mode-plus 0.34.0 -> 0.49.0
Would you like to install these updates? (yes) yes
Installing [email protected] to C:\Users\rpolisetti.atom\packages failed
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Users\rpolisetti\AppData\Local\atom\app-1.8.0\resources\app\apm\bin\node.exe" "C:\Users\rpolisetti\AppData\Local\atom\app-1.8.0\resources\app\apm\node_modules\npm\bin\npm-cli.js" "--globalconfig" "C:\Users\rpolisetti.atom.apm.apmrc" "--userconfig" "C:\Users\rpolisetti.atom.apmrc" "install" "C:\Users\RPOLIS~1\AppData\Local\Temp\d-116625-12820-1ct122l\package.tgz" "--target=0.36.8" "--arch=ia32" "--msvs_version=2013"
npm ERR! node v0.10.40
npm ERR! npm v2.13.3
npm ERR! file C:\Users\rpolisetti.atom.apm\atom-space-pen-views\2.2.0\package\package.json
npm ERR! code EJSONPARSE
npm ERR! Failed to parse json
npm ERR! Unexpected token '\u0000' at 1:1
npm ERR!
npm ERR! ^
npm ERR! File: C:\Users\rpolisetti.atom.apm\atom-space-pen-views\2.2.0\package\package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse
C:>
First, I think you need to open a new issue either with atom-typescript or atom-space-pen-views. Your error doesn't have the same text as what's being addressed here.
see below lines:
Second, if this error showed up for me, try deleting the atom-typescript package from C:\Users\rpolisetti\AppData\Local\atom, reinstall atom-typescript, and then run an update again. If you're still getting the same error then you're probably not getting the same issue as what's being reported here.
sudo apm update solved for me. Had to restart Atom.
Had to scroll down a bit, got the error as well.
I had the same issue. The workarounds from this bug did not help. This helped:
echo 32768 | sudo tee -a /proc/sys/fs/inotify/max_user_watches
export ATOM_NODE_URL=http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist
atom
I am behind a firewall
@feumilieu what's with the amazon s3 url?
@tonyeung No idea. This is from some workaround for other atom bugs, or even two. I just tried it and it helped.
Any solution for Win10?
@QAnders what have you tried?
Well, I've seem to have gotten rid of the error message now. It all stared when I tried to update a bunch of plugins at the same time. First error I got was in Minimap so I updated it "manually" and then I got the next for Linter-js-standard which I disabled and then re-enabled and I got it working...
Hey, found the solution to this. Sorry everybody.
This will be fixed in 1.9.8
Most helpful comment
+1
apm updatecould solve this