JoelBesada / activate-power-mode

Atom package - Activate POWER MODE to write your code in style.
MIT License
3.58k stars 422 forks source link

Failed to load the activate-power-mode package #56

Closed huanzhang closed 8 years ago

huanzhang commented 8 years ago
  1. active power mode with Active Power Mode: Toggle
  2. input some code in the Power Mode and close the file
  3. open another file and reload atom window with : Window: Reload
  4. the following error appears

Atom Version: 1.2.4 System: Mac OS X 10.11.1 Thrown From: Atom Core

Stack Trace

Failed to load the activate-power-mode package

At Syntax error on line 2, column 2: One top level value expected

SyntaxError: Syntax error on line 2, column 2: One top level value expected
    at nodeTransforms.Block (/opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/node_modules/season/node_modules/cson-parser/lib/parse.js:74:15)
    at transformNode (/opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/node_modules/season/node_modules/cson-parser/lib/parse.js:197:12)
    at Object.parse (/opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/node_modules/season/node_modules/cson-parser/lib/parse.js:203:12)
    at parseObject (/opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/node_modules/season/lib/cson.js:42:23)
    at parseContentsSync (/opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/node_modules/season/lib/cson.js:68:16)
    at Object.module.exports.readFileSync (/opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/node_modules/season/lib/cson.js:170:14)
    at /opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/src/package.js:381:43
    at Array.map (native)
    at Package.module.exports.Package.loadMenus (/opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/src/package.js:379:42)
    at /opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/src/package.js:111:19
    at Package.module.exports.Package.measure (/opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/src/package.js:92:15)
    at Package.module.exports.Package.load (/opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/src/package.js:106:12)
    at PackageManager.module.exports.PackageManager.loadPackage (/opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/src/package-manager.js:434:14)
    at PackageManager.module.exports.PackageManager.loadPackages (/opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/src/package-manager.js:386:14)
    at AtomEnvironment.module.exports.AtomEnvironment.startEditorWindow (/opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/src/atom-environment.js:667:21)
    at Object.<anonymous> (/opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/src/initialize-application-window.js:38:8)
    at Object.<anonymous> (/opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/src/initialize-application-window.js:49:4)
    at Module._compile (module.js:434:26)
    at Object.defineProperty.value [as .js] (/opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:190:21)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at setupWindow (file:///opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/static/index.js:79:5)
    at window.onload (file:///opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/static/index.js:35:9)

Commands

Config

{
  "core": {
    "ignoredNames": [
      ".bundle",
      ".git",
      "repositories",
      "vendor"
    ],
    "themes": [
      "atom-dark-ui",
      "seti-syntax"
    ],
    "hideGitIgnoredFiles": false,
    "disabledPackages": [
      "background-tips",
      "exception-reporting",
      "metrics"
    ],
    "projectHome": "/Users/zhanghuan/Code"
  },
  "editor": {
    "fontFamily": "Menlo",
    "invisibles": {},
    "fontSize": 15,
    "softWrapAtPreferredLineLength": true,
    "showInvisibles": true,
    "backUpBeforeSaving": true,
    "showIndentGuide": true,
    "preferredLineLength": 150
  }
}

Installed Packages

# User
autocomplete-paths, v1.0.2
linter, v1.11.3
linter-rubocop, v0.4.4
pdf-view, v0.37.0
pig, v1.0.0
seti-syntax, v0.4.1
tablr, v0.9.0
vim-mode, v0.63.0

# Dev
No dev packages
lexcast commented 8 years ago

this is still happening with newest version?

josealgardataborges commented 8 years ago

Yes...

Cannot find module 'lodash.throttle' Hide Stack Trace Error: Cannot find module 'lodash.throttle' at Module._resolveFilename (module.js:338:15) at Function.Module._resolveFilename (C:\Users\jose.borges\AppData\Local\atom\app-1.7.3\resources\app.asar\src\module-cache.js:383:52) at Function.Module._load (module.js:289:25) at Module.require (module.js:366:17) at require (C:\Users\jose.borges\AppData\Local\atom\app-1.7.3\resources\app.asar\src\native-compile-cache.js:50:27) at Object. (file:///C:/Users/jose.borges/.atom/packages/activate-power-mode-0.5.2/lib/activate-power-mode.coffee:1:12) at Object. (file:///C:/Users/jose.borges/.atom/packages/activate-power-mode-0.5.2/lib/activate-power-mode.coffee:1:1) at Module._compile (C:\Users\jose.borges\AppData\Local\atom\app-1.7.3\resources\app.asar\src\native-compile-cache.js:103:30) at Object.defineProperty.value as .coffee at Module.load (module.js:356:32) at Function.Module._load (module.js:313:12) at Module.require (module.js:366:17) at require (C:\Users\jose.borges\AppData\Local\atom\app-1.7.3\resources\app.asar\src\native-compile-cache.js:50:27) at Package.module.exports.Package.requireMainModule (C:\Users\jose.borges\AppData\Local\atom\app-1.7.3\resources\app.asar\src\package.js:715:27) at C:\Users\jose.borges\AppData\Local\atom\app-1.7.3\resources\app.asar\src\package.js:117:28 at Package.module.exports.Package.measure (C:\Users\jose.borges\AppData\Local\atom\app-1.7.3\resources\app.asar\src\package.js:92:15) at Package.module.exports.Package.load (C:\Users\jose.borges\AppData\Local\atom\app-1.7.3\resources\app.asar\src\package.js:106:12) at PackageManager.module.exports.PackageManager.loadPackage (C:\Users\jose.borges\AppData\Local\atom\app-1.7.3\resources\app.asar\src\package-manager.js:457:14) at C:\Users\jose.borges\AppData\Local\atom\app-1.7.3\resources\app.asar\src\package-manager.js:402:19 at Config.module.exports.Config.transact (C:\Users\jose.borges\AppData\Local\atom\app-1.7.3\resources\app.asar\src\config.js:312:16) at PackageManager.module.exports.PackageManager.loadPackages (C:\Users\jose.borges\AppData\Local\atom\app-1.7.3\resources\app.asar\src\package-manager.js:397:19) at C:\Users\jose.borges\AppData\Local\atom\app-1.7.3\resources\app.asar\src\atom-environment.js:743:28 atompower

lexcast commented 8 years ago

@josealgardataborges how did you install the package?

mashirozx commented 8 years ago

the same as above... installed by the package download from https://github.com/JoelBesada/activate-power-mode.git 0.5.2 version windows10 atom1.8.0


Failed to load the activate-power-mode package Cannot find module 'lodash.throttle' Hide Stack Trace Error: Cannot find module 'lodash.throttle' at Module._resolveFilename (module.js:338:15) at Function.Module._resolveFilename (C:\Users\samsungpc\AppData\Local\atom\app-1.8.0\resources\app.asar\src\module-cache.js:383:52) at Function.Module._load (module.js:289:25) at Module.require (module.js:366:17) at require (C:\Users\samsungpc\AppData\Local\atom\app-1.8.0\resources\app.asar\src\native-compile-cache.js:50:27) at Object. (file:///C:/Users/samsungpc/.atom/packages/activate-power-mode-master/lib/activate-power-mode.coffee:1:12) at Object. (file:///C:/Users/samsungpc/.atom/packages/activate-power-mode-master/lib/activate-power-mode.coffee:1:1) at Module._compile (C:\Users\samsungpc\AppData\Local\atom\app-1.8.0\resources\app.asar\src\native-compile-cache.js:103:30) at Object.defineProperty.value as .coffee at Module.load (module.js:356:32) at Function.Module._load (module.js:313:12) at Module.require (module.js:366:17) at require (C:\Users\samsungpc\AppData\Local\atom\app-1.8.0\resources\app.asar\src\native-compile-cache.js:50:27) at Package.module.exports.Package.requireMainModule (C:\Users\samsungpc\AppData\Local\atom\app-1.8.0\resources\app.asar\src\package.js:715:27) at C:\Users\samsungpc\AppData\Local\atom\app-1.8.0\resources\app.asar\src\package.js:117:28 at Package.module.exports.Package.measure (C:\Users\samsungpc\AppData\Local\atom\app-1.8.0\resources\app.asar\src\package.js:92:15) at Package.module.exports.Package.load (C:\Users\samsungpc\AppData\Local\atom\app-1.8.0\resources\app.asar\src\package.js:106:12) at PackageManager.module.exports.PackageManager.loadPackage (C:\Users\samsungpc\AppData\Local\atom\app-1.8.0\resources\app.asar\src\package-manager.js:457:14) at C:\Users\samsungpc\AppData\Local\atom\app-1.8.0\resources\app.asar\src\package-manager.js:402:19 at Config.module.exports.Config.transact (C:\Users\samsungpc\AppData\Local\atom\app-1.8.0\resources\app.asar\src\config.js:312:16) at PackageManager.module.exports.PackageManager.loadPackages (C:\Users\samsungpc\AppData\Local\atom\app-1.8.0\resources\app.asar\src\package-manager.js:397:19) at C:\Users\samsungpc\AppData\Local\atom\app-1.8.0\resources\app.asar\src\atom-environment.js:743:28 The error was thrown from the activate-power-mode package.

lexcast commented 8 years ago

@dyphoenix why not installing by the atom package manager?

mashirozx commented 8 years ago

yep, i've get it down, like it very much, tks~

UnlimitedBurst commented 8 years ago

@lexcast I encountered the same problem with @dyphoenix,I already try to use atom package manager install but install error.Then I try to install by console command but install error too;

lexcast commented 8 years ago

Closing issues on old versions of this package.

Open again if the problem persists with the latest release.

lexcast commented 8 years ago

Hi @luffy9412 what says the error?

snowluliang commented 8 years ago

please help me!

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.9.6 System: Unknown Windows Version Thrown From: activate-power-mode package, v0.7.3

Stack Trace

Failed to load the activate-power-mode package

At Cannot find module 'lodash.throttle'

Error: Cannot find module 'lodash.throttle'
    at Module._resolveFilename (module.js:339:15)
    at Function.Module._resolveFilename (C:\Users\Snow\AppData\Local\atom\app-1.9.6\resources\app.asar\src\module-cache.js:383:52)
    at Function.Module._load (module.js:290:25)
    at Module.require (module.js:367:17)
    at require (C:\Users\Snow\AppData\Local\atom\app-1.9.6\resources\app.asar\src\native-compile-cache.js:50:27)
    at Object.<anonymous> (file:///C:/Users/Snow/.atom/packages/activate-power-mode-master/lib/power-editor.coffee:1:12)
    at Object.<anonymous> (file:///C:/Users/Snow/.atom/packages/activate-power-mode-master/lib/power-editor.coffee:1:1)
    at Module._compile (C:\Users\Snow\AppData\Local\atom\app-1.9.6\resources\app.asar\src\native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .coffee] (C:\Users\Snow\AppData\Local\atom\app-1.9.6\resources\app.asar\src\compile-cache.js:208:21)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (C:\Users\Snow\AppData\Local\atom\app-1.9.6\resources\app.asar\src\native-compile-cache.js:50:27)
    at Object.<anonymous> (file:///C:/Users/Snow/.atom/packages/activate-power-mode-master/lib/activate-power-mode.coffee:3:15)
    at Object.<anonymous> (file:///C:/Users/Snow/.atom/packages/activate-power-mode-master/lib/activate-power-mode.coffee:1:1)
    at Module._compile (C:\Users\Snow\AppData\Local\atom\app-1.9.6\resources\app.asar\src\native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .coffee] (C:\Users\Snow\AppData\Local\atom\app-1.9.6\resources\app.asar\src\compile-cache.js:208:21)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (C:\Users\Snow\AppData\Local\atom\app-1.9.6\resources\app.asar\src\native-compile-cache.js:50:27)
    at Package.module.exports.Package.requireMainModule (C:\Users\Snow\AppData\Local\atom\app-1.9.6\resources\app.asar\src\package.js:715:27)
    at C:\Users\Snow\AppData\Local\atom\app-1.9.6\resources\app.asar\src\package.js:117:28
    at Package.module.exports.Package.measure (C:\Users\Snow\AppData\Local\atom\app-1.9.6\resources\app.asar\src\package.js:92:15)
    at Package.module.exports.Package.load (C:\Users\Snow\AppData\Local\atom\app-1.9.6\resources\app.asar\src\package.js:106:12)
    at PackageManager.module.exports.PackageManager.loadPackage (C:\Users\Snow\AppData\Local\atom\app-1.9.6\resources\app.asar\src\package-manager.js:457:14)
    at C:\Users\Snow\AppData\Local\atom\app-1.9.6\resources\app.asar\src\package-manager.js:402:19
    at Config.module.exports.Config.transact (C:\Users\Snow\AppData\Local\atom\app-1.9.6\resources\app.asar\src\config.js:312:16)
    at PackageManager.module.exports.PackageManager.loadPackages (C:\Users\Snow\AppData\Local\atom\app-1.9.6\resources\app.asar\src\package-manager.js:397:19)
    at C:\Users\Snow\AppData\Local\atom\app-1.9.6\resources\app.asar\src\atom-environment.js:749:28

Commands

Config

{
  "core": {}
}

Installed Packages

# User
activate-power-mode, v0.7.3 (inactive)
atom-dark-syntax, v0.27.0 (inactive)
atom-dark-ui, v0.51.0 (inactive)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.43.0 (inactive)
base16-tomorrow-dark-theme, v1.1.0 (inactive)
base16-tomorrow-light-theme, v1.1.1 (inactive)
one-dark-ui, v1.3.2 (inactive)
one-light-ui, v1.3.2 (inactive)
one-dark-syntax, v1.2.0 (inactive)
one-light-syntax, v1.2.0 (inactive)
solarized-dark-syntax, v1.0.2 (inactive)
solarized-light-syntax, v1.0.2 (inactive)
about, v1.5.2 (inactive)
archive-view, v0.61.1 (inactive)
autocomplete-atom-api, v0.10.0 (inactive)
autocomplete-css, v0.11.1 (inactive)
autocomplete-html, v0.7.2 (inactive)
autocomplete-plus, v2.31.0 (inactive)
autocomplete-snippets, v1.11.0 (inactive)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (inactive)
background-tips, v0.26.0 (inactive)
bookmarks, v0.41.0 (inactive)
bracket-matcher, v0.82.1 (inactive)
command-palette, v0.38.0 (inactive)
deprecation-cop, v0.54.1 (inactive)
dev-live-reload, v0.47.0 (inactive)
encoding-selector, v0.22.0 (inactive)
exception-reporting, v0.38.3 (inactive)
fuzzy-finder, v1.3.0 (inactive)
git-diff, v1.1.0 (inactive)
find-and-replace, v0.198.0 (inactive)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.1 (inactive)
image-view, v0.58.0 (inactive)
incompatible-packages, v0.26.1 (inactive)
keybinding-resolver, v0.35.0 (inactive)
line-ending-selector, v0.5.0 (inactive)
link, v0.31.1 (inactive)
markdown-preview, v0.158.0 (inactive)
metrics, v0.53.1 (inactive)
notifications, v0.64.1 (inactive)
open-on-github, v1.2.0 (inactive)
package-generator, v1.0.0 (inactive)
settings-view, v0.238.0 (inactive)
snippets, v1.0.2 (inactive)
spell-check, v0.67.1 (inactive)
status-bar, v1.4.1 (inactive)
styleguide, v0.46.0 (inactive)
symbols-view, v0.113.0 (inactive)
tabs, v0.98.0 (inactive)
timecop, v0.33.1 (inactive)
tree-view, v0.208.0 (inactive)
update-package-dependencies, v0.10.0 (inactive)
welcome, v0.34.0 (inactive)
whitespace, v0.32.2 (inactive)
wrap-guide, v0.38.1 (inactive)
language-c, v0.52.1 (inactive)
language-clojure, v0.21.0 (inactive)
language-coffee-script, v0.47.0 (inactive)
language-csharp, v0.12.1 (inactive)
language-css, v0.36.2 (inactive)
language-gfm, v0.86.0 (inactive)
language-git, v0.13.0 (inactive)
language-go, v0.42.0 (inactive)
language-html, v0.44.1 (inactive)
language-hyperlink, v0.16.0 (inactive)
language-java, v0.22.0 (inactive)
language-javascript, v0.119.0 (inactive)
language-json, v0.18.0 (inactive)
language-less, v0.29.3 (inactive)
language-make, v0.22.2 (inactive)
language-mustache, v0.13.0 (inactive)
language-objective-c, v0.15.1 (inactive)
language-perl, v0.35.0 (inactive)
language-php, v0.37.0 (inactive)
language-property-list, v0.8.0 (inactive)
language-python, v0.45.0 (inactive)
language-ruby, v0.68.5 (inactive)
language-ruby-on-rails, v0.25.0 (inactive)
language-sass, v0.52.0 (inactive)
language-shellscript, v0.22.3 (inactive)
language-source, v0.9.0 (inactive)
language-sql, v0.21.1 (inactive)
language-text, v0.7.1 (inactive)
language-todo, v0.28.0 (inactive)
language-toml, v0.18.0 (inactive)
language-xml, v0.34.8 (inactive)
language-yaml, v0.26.0 (inactive)

# Dev
No dev packages
lexcast commented 8 years ago

@snowluliang how did you install the package?

liuchangxing commented 8 years ago

Hello, I am from China, I downloaded your compressed package, installed on the useless, why, the situation is similar to the above, I am a Windows7 system.

liuchangxing commented 8 years ago

Is there a version of it, give me a link to download, I think it will be useful.

liuchangxing commented 8 years ago

All right. I tried a version of the next version, and no use, how to do

liuchangxing commented 8 years ago

qq 20160921172704

liuchangxing commented 8 years ago

Also, atom support for what font ah.

lexcast commented 8 years ago

@liuchangxing try using the terminal running apm install activate-power-mode and show me the output.

liuchangxing commented 8 years ago

Cannot find module 'lodash.throttle' Hide Stack Trace Error: Cannot find module 'lodash.throttle' at Module._resolveFilename (module.js:339:15) at Function.Module._resolveFilename (D:\Atom\resources\app.asar\src\module-cache.js:383:52) at Function.Module._load (module.js:290:25) at Module.require (module.js:367:17) at require (D:\Atom\resources\app.asar\src\native-compile-cache.js:50:27) at Object. (file:///C:/Users/Administrator/.atom/packages/activate-power-mode-changelog-update/lib/power-editor.coffee:1:12) at Object. (file:///C:/Users/Administrator/.atom/packages/activate-power-mode-changelog-update/lib/power-editor.coffee:1:1) at Module._compile (D:\Atom\resources\app.asar\src\native-compile-cache.js:103:30) at Object.defineProperty.value as .coffee at Module.load (module.js:357:32) at Function.Module._load (module.js:314:12) at Module.require (module.js:367:17) at require (D:\Atom\resources\app.asar\src\native-compile-cache.js:50:27) at Object. (file:///C:/Users/Administrator/.atom/packages/activate-power-mode-0.7.3/lib/activate-power-mode.coffee:3:15) at Object. (file:///C:/Users/Administrator/.atom/packages/activate-power-mode-0.7.3/lib/activate-power-mode.coffee:1:1) at Module._compile (D:\Atom\resources\app.asar\src\native-compile-cache.js:103:30) at Object.defineProperty.value as .coffee at Module.load (module.js:357:32) at Function.Module._load (module.js:314:12) at Module.require (module.js:367:17) at require (D:\Atom\resources\app.asar\src\native-compile-cache.js:50:27) at Package.module.exports.Package.requireMainModule (D:\Atom\resources\app.asar\src\package.js:718:27) at D:\Atom\resources\app.asar\src\package.js:117:28 at Package.module.exports.Package.measure (D:\Atom\resources\app.asar\src\package.js:92:15) at Package.module.exports.Package.load (D:\Atom\resources\app.asar\src\package.js:106:12) at PackageManager.module.exports.PackageManager.loadPackage (D:\Atom\resources\app.asar\src\package-manager.js:457:14) at D:\Atom\resources\app.asar\src\package-manager.js:402:19 at Config.module.exports.Config.transact (D:\Atom\resources\app.asar\src\config.js:312:16) at PackageManager.module.exports.PackageManager.loadPackages (D:\Atom\resources\app.asar\src\package-manager.js:397:19) at D:\Atom\resources\app.asar\src\atom-environment.js:754:28

liuchangxing commented 8 years ago

Is this one?

lexcast commented 8 years ago

mm no, but that problem is fixed by running

cd ~/.atom/packages/activate-power-mode
npm install
liuchangxing commented 8 years ago

But,apm,can't be in my "Windos PowerShell"function

liuchangxing commented 8 years ago

qq 20160922102309

liuchangxing commented 8 years ago

找不到路径 (path not found)

liuchangxing commented 8 years ago

image What's next?Oh! I'm so stupid.

lexcast commented 8 years ago

Don't worry from where you are in the terminal run:

cd activate-power-mode
npm install
liuchangxing commented 8 years ago

qq 20160922121252 And what?This seems to be right.

liuchangxing commented 8 years ago

No no no, it can't be used.

liuchangxing commented 8 years ago

qq 20160922123124 Sorry. I just put the folder name wrong.

liuchangxing commented 8 years ago

1gif thank you very much! It has been good.Really thank you so much!

liuchangxing commented 8 years ago

qq 20160922190735 Oh! This feature I love it!

lexcast commented 8 years ago

@liuchangxing great :tada:

liuchangxing commented 8 years ago

thank you for your help.

zhpass commented 8 years ago

image why

lexcast commented 8 years ago

@zhpass try installing with apm install activate-power-mode

zhpass commented 8 years ago

its ok thank you;

ghost commented 7 years ago

+1 after update to 1.1.0

lexcast commented 7 years ago

@JetCrusherTorpedo if the issue was just after the upgrade, try reopening atom.

ghost commented 7 years ago

@lexcast Still occurs, tried relaunching twice. Here's the Stack Trace: image

lexcast commented 7 years ago

@JetCrusherTorpedo this doesn't seem related to this issue, can you open a new one? and please copy/paste the stack trace as text, would be more useful.

ghost commented 7 years ago

@lexcast Atom says the error has already been reported and links to this issue

Stack Trace text: SyntaxError: Unexpected token ILLEGAL at Module._compile (C:\Users\USERNAME\AppData\Local\atom\app-1.11.2\resources\app.asar\src\native-compile-cache.js:77:42) at Object.defineProperty.value [as .coffee] (C:\Users\USERNAME\AppData\Local\atom\app-1.11.2\resources\app.asar\src\compile-cache.js:208:21) at Module.load (module.js:357:32) at Function.Module._load (module.js:314:12) at Module.require (module.js:367:17) at require (C:\Users\USERNAME\AppData\Local\atom\app-1.11.2\resources\app.asar\src\native-compile-cache.js:50:27) at Package.module.exports.Package.requireMainModule (C:\Users\USERNAME\AppData\Local\atom\app-1.11.2\resources\app.asar\src\package.js:721:27) at C:\Users\USERNAME\AppData\Local\atom\app-1.11.2\resources\app.asar\src\package.js:117:28 at Package.module.exports.Package.measure (C:\Users\USERNAME\AppData\Local\atom\app-1.11.2\resources\app.asar\src\package.js:92:15) at Package.module.exports.Package.load (C:\Users\USERNAME\AppData\Local\atom\app-1.11.2\resources\app.asar\src\package.js:106:12) at PackageManager.module.exports.PackageManager.loadPackage (C:\Users\USERNAME\AppData\Local\atom\app-1.11.2\resources\app.asar\src\package-manager.js:457:14) at C:\Users\USERNAME\AppData\Local\atom\app-1.11.2\resources\app.asar\src\package-manager.js:402:19 at Config.module.exports.Config.transact (C:\Users\USERNAME\AppData\Local\atom\app-1.11.2\resources\app.asar\src\config.js:312:16) at PackageManager.module.exports.PackageManager.loadPackages (C:\Users\USERNAME\AppData\Local\atom\app-1.11.2\resources\app.asar\src\package-manager.js:397:19) at C:\Users\USERNAME\AppData\Local\atom\app-1.11.2\resources\app.asar\src\atom-environment.js:759:28

lexcast commented 7 years ago

@JetCrusherTorpedo I know, but if you read this issue you will see is total different, I don't know how atom match existing issues but it fails sometimes.

ghost commented 7 years ago

@lexcast alright, thanks

acoret commented 7 years ago

sorry to bother,it installed error in my computer.Ubuntu 16.04 Atom is newly installed without other plugins(In fact other plugins fail to install) I try first apm install activate-power-mode it is stucked with 'Installing activate-power-mode to /home/uncrepter/.atom/packages' so i try other way, git clone --depth=1 https://github.com/JoelBesada/activate-power-mode.git and cd ~/.atom/pack/ac,apm install,it failed(stucked). then npm install,It just fail to isntall. loadDep:lodash.throttle → ▀ ╢██████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ that's what i got in screen.

lexcast commented 7 years ago

@acoret if you try to install from the atom UI on Settings > Install?

acoret commented 7 years ago

@lexcast amzing,it work now.

YangFuLong commented 7 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.15.0 ia32 Electron: 1.3.13 OS: Unknown Windows version Thrown From: activate-power-mode package 1.4.0

Stack Trace

Failed to load the activate-power-mode package

At Cannot find module 'lodash.throttle'

Error: Cannot find module 'lodash.throttle'
    at Module._resolveFilename (module.js:455:15)
    at Module._resolveFilename (~/AppData/Local/atom/app-1.15.0/resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.Module._resolveFilename (/app.asar/src/module-cache.js:383:52)
    at Function.Module._load (module.js:403:25)
    at Module.require (module.js:483:17)
    at require (/app.asar/src/native-compile-cache.js:50:27)
    at /packages/activate-power-mode/lib/power-editor.coffee:1:12)
    at /packages/activate-power-mode/lib/power-editor.coffee:1:1)
    at Module._compile (/app.asar/src/native-compile-cache.js:109:30)
    at /app.asar/src/compile-cache.js:216:21)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
    at Module.require (module.js:483:17)
    at require (/app.asar/src/native-compile-cache.js:50:27)
    at /packages/activate-power-mode/lib/activate-power-mode.coffee:4:15)
    at /packages/activate-power-mode/lib/activate-power-mode.coffee:1:1)
    at Module._compile (/app.asar/src/native-compile-cache.js:109:30)
    at /app.asar/src/compile-cache.js:216:21)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
    at Module.require (module.js:483:17)
    at require (/app.asar/src/native-compile-cache.js:50:27)
    at Package.module.exports.Package.requireMainModule (/app.asar/src/package.js:796:27)
    at /app.asar/src/package.js:123:28
    at Package.module.exports.Package.measure (/app.asar/src/package.js:96:15)
    at Package.module.exports.Package.load (/app.asar/src/package.js:110:12)
    at PackageManager.module.exports.PackageManager.loadPackage (/app.asar/src/package-manager.js:468:14)
    at /app.asar/src/package-manager.js:412:19

Commands

Non-Core Packages

activate-power-mode 1.4.0 
atom-chs-menu 1.0.0