Installation error on atom editor in windows 10

983 views
Skip to first unread message

dev.p...@gmail.com

unread,
Oct 12, 2017, 8:53:37 AM10/12/17
to SonarLint
Hi,

I was trying to install this plugin in Atom editor in windows and getting below error.

npm WARN deprecated tough-...@2.2.2: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
npm WARN deprecated node...@1.4.8: Use uuid module instead
'rm' is not recognized as an internal or external command,
operable program or batch file.

npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\\Users\\pauls\\AppData\\Local\\atom\\app-1.18.0\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\pauls\\AppData\\Local\\atom\\app-1.18.0\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "run" "clean"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! atom-lang...@0.1.2 clean: `rm -rf build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the atom-lang...@0.1.2 clean script 'rm -rf build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the atom-languageclient package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     rm -rf build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs atom-languageclient
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls atom-languageclient
npm ERR! There is likely additional logging output above.

janos....@sonarsource.com

unread,
Nov 3, 2017, 12:46:11 PM11/3/17
to SonarLint
Hi,

Did you use the GUI to install it, or the `apm` command line tool?

Can you please try with this command and tell me what happens: apm install sonarlint

Thanks,
Janos

Manuel Velázquez

unread,
Nov 15, 2017, 4:12:22 AM11/15/17
to SonarLint
Hi.
I have the same error. I try using apm install sonarlint, but it not found.

npm WARN deprecated tough-cookie@2.2.2: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
npm WARN deprecated node
-uuid@1.4.8: Use uuid module instead
"rm" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable
.

npm ERR
! Windows_NT 10.0.15063
npm ERR
! argv "C:\\Users\\mvelazquez\\AppData\\Local\\atom\\app-1.22.0\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\mvelazquez\\AppData\\Local\\atom\\app-1.22.0\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "run" "clean"

npm ERR
! node v6.9.5
npm ERR
! npm  v3.10.10
npm ERR
!
code ELIFECYCLE
npm ERR
! atom-languageclient@0.1.2 clean: `rm -rf build`

npm ERR
! Exit status 1
npm ERR
!

npm ERR
! Failed at the atom-languageclient@0.1.2 clean script 'rm -rf build'.

npm ERR
! Make sure you have the latest version of node.js and npm installed.
npm ERR
! If you do, this is most likely a problem with the atom-languageclient package,
npm ERR
! not with npm itself.
npm ERR
! Tell the author that this fails on your system:
npm ERR
!     rm -rf build
npm ERR
! You can get information on how to open an issue for this project with:
npm ERR
!     npm bugs atom-languageclient
npm ERR
! Or if that isn
't available, you can get their info via:

npm ERR!     npm owner ls atom-languageclient
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\MVELAZ~1\AppData\Local\Temp\apm-install-dir-1171015-8764-1144xs.3u43hgds4i\node_modules\sonarlint\node_modules\atom-languageclient\npm-debug.log

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\babel-cli\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsev...@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\\Users\\mvelazquez\\AppData\\Local\\atom\\app-1.22.0\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\mvelazquez\\AppData\\Local\\atom\\app-1.22.0\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "install" "--only=dev"

npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! atom-lang...@0.1.2 prepublish: `npm run clean && npm run compile`

npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the atom-lang...@0.1.2 prepublish script 'npm run clean && npm run compile'.

npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the atom-languageclient package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run clean && npm run compile

npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs atom-languageclient
npm ERR! Or if that isn'
t available, you can get their info via:

npm ERR
!     npm owner ls atom-languageclient
npm ERR
! There is likely additional logging output above.


npm ERR
! Please include the following file with any support request:
npm ERR
!     C:\Users\MVELAZ~1\AppData\Local\Temp\apm-install-dir-1171015-8764-1144xs.3u43hgds4i\node_modules\sonarlint\node_modules\atom-languageclient\npm-debug.log
{ Error: Command failed: C:\WINDOWS\system32\cmd.exe /d /s /c ""C:\Users\mvelazquez\AppData\Local\atom\app-1.22.0\resources\app\apm\bin\node.exe" "C:\Users\mvelazquez\AppData\Local\atom\app-1.22.0\resources\app\apm\node_modules\npm\bin\npm-cli.js" install --only=dev"

    at
ChildProcess.<anonymous> (C:\Users\MVELAZ~1\AppData\Local\Temp\apm-install-dir-1171015-8764-1144xs.3u43hgds4i\node_modules\sonarlint\node_modules\postinstall-build\index.js:53:13)
    at emitTwo
(events.js:106:13)
    at
ChildProcess.emit (events.js:191:7)
    at maybeClose
(internal/child_process.js:877:16)
    at
Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
  killed
: false,
  code
: 1,
  signal
: null,
  cmd
: 'C:\\WINDOWS\\system32\\cmd.exe /d /s /c ""C:\\Users\\mvelazquez\\AppData\\Local\\atom\\app-1.22.0\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\mvelazquez\\AppData\\Local\\atom\\app-1.22.0\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" install --only=dev"' }
npm WARN enoent ENOENT
: no such file or directory, open 'C:\Users\MVELAZ~1\AppData\Local\Temp\apm-install-dir-1171015-8764-1144xs.3u43hgds4i\package.json'
npm WARN apm
-install-dir-1171015-8764-1144xs.3u43hgds4i No description
npm WARN apm
-install-dir-1171015-8764-1144xs.3u43hgds4i No repository field.
npm WARN apm
-install-dir-1171015-8764-1144xs.3u43hgds4i No README data
npm WARN apm
-install-dir-1171015-8764-1144xs.3u43hgds4i No license field.
npm ERR
! Windows_NT 10.0.15063
npm ERR
! argv "C:\\Users\\mvelazquez\\AppData\\Local\\atom\\app-1.22.0\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\mvelazquez\\AppData\\Local\\atom\\app-1.22.0\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\mvelazquez\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\mvelazquez\\.atom\\.apmrc" "install" "C:\\Users\\MVELAZ~1\\AppData\\Local\\Temp\\d-1171015-8764-33fusu.tua2az6w29\\package.tgz" "--runtime=electron" "--target=1.6.15" "--arch=x64" "--global-style"

npm ERR
! node v6.9.5
npm ERR
! npm  v3.10.10
npm ERR
!
code ELIFECYCLE

npm ERR
! atom-languageclient@0.1.2 postinstall: `postinstall-build --only-as-dependency build "npm run compile"`

npm ERR
! Exit status 1
npm ERR
!

npm ERR
! Failed at the atom-languageclient@0.1.2 postinstall script 'postinstall-build --only-as-dependency build "npm run compile"'.

npm ERR
! Make sure you have the latest version of node.js and npm installed.
npm ERR
! If you do, this is most likely a problem with the atom-languageclient package,
npm ERR
! not with npm itself.
npm ERR
! Tell the author that this fails on your system:

npm ERR
!     postinstall-build --only-as-dependency build "npm run compile"

npm ERR
! You can get information on how to open an issue for this project with:
npm ERR
!     npm bugs atom-languageclient
npm ERR
! Or if that isn
't available, you can get their info via:

npm ERR!     npm owner ls atom-languageclient
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\MVELAZ~1\AppData\Local\Temp\apm-install-dir-1171015-8764-1144xs.3u43hgds4i\npm-debug.log
npm ERR! code 1





Thanks you!!

bel.v...@gmail.com

unread,
Jan 10, 2018, 2:40:40 AM1/10/18
to SonarLint
I got the exact same error on Windows 7 + fresh install of Atom, when trying to install sonarlint.

npm ERR! Failed at the atom-lang...@0.1.2 prepublish script 'npm run clean && npm run compile'.

...

npm ERR! atom-lang...@0.1.2 postinstall: `postinstall-build --only-as-dependency build "npm run compile"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the atom-lang...@0.1.2 postinstall script 'postinstall-build --only-as-dependency build

adso...@gmail.com

unread,
Feb 25, 2018, 5:09:15 AM2/25/18
to SonarLint
Hello,

I had the same issue,but running directly the command worked. 

Thank you!
Alina
Reply all
Reply to author
Forward
0 new messages