question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'npm run local' throws error after fresh clone and following guide

See original GitHub issue

I can probably figure this out myself, however I could not see any answers to this on the supplied wiki and guides.

(It’s pretty late at night, so I’m not in the mood to fully debug)

I believe that tslint, webpack, etc are not command that the command line can run:

'tslint' is not recognised as an internal or external command, operable program or batch file.

Here is my npm-debug.log:

0 info it worked if it ends with ok
1 verbose cli [ 'D:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'D:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'run',
1 verbose cli   'local' ]
2 info using npm@3.3.12
3 info using node@v5.4.0
4 verbose run-script [ 'prelocal', 'local', 'postlocal' ]
5 info lifecycle screeps-typescript-starter@2.0.0~prelocal: screeps-typescript-starter@2.0.0
6 silly lifecycle screeps-typescript-starter@2.0.0~prelocal: no script for prelocal, continuing
7 info lifecycle screeps-typescript-starter@2.0.0~local: screeps-typescript-starter@2.0.0
8 verbose lifecycle screeps-typescript-starter@2.0.0~local: unsafe-perm in lifecycle true
9 verbose lifecycle screeps-typescript-starter@2.0.0~local: PATH: D:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;D:\GitHub\screeps-typescript-starter\node_modules\.bin;C:\Program Files (x86)\Razer Chroma SDK\bin;C:\Program Files\Razer Chroma SDK\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\ProgramData\Razer\SwitchBlade\SDK;C:\Users\user\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;D:\Program Files\nodejs\;C:\Prog;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Skype\Phone\;C:\Program Files\Git\cmd;D:\Program Files\PuTTY\;C:\Users\user\AppData\Roaming\npm;C:\Users\user\AppData\Local\Microsoft\WindowsApps;D:\Program Files\php;D:\Program Files (x86)\Microsoft VS Code\bin;C:\Users\user\AppData\Local\GitHubDesktop\bin;D:\Users\user\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin
10 verbose lifecycle screeps-typescript-starter@2.0.0~local: CWD: D:\GitHub\screeps-typescript-starter
11 silly lifecycle screeps-typescript-starter@2.0.0~local: Args: [ '/d /s /c', 'webpack --colors --env.ENV=local' ]
12 silly lifecycle screeps-typescript-starter@2.0.0~local: Returned: code: 1  signal: null
13 info lifecycle screeps-typescript-starter@2.0.0~local: Failed to exec local script
14 verbose stack Error: screeps-typescript-starter@2.0.0 local: `webpack --colors --env.ENV=local`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (D:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:232:16)
14 verbose stack     at emitTwo (events.js:87:13)
14 verbose stack     at EventEmitter.emit (events.js:172:7)
14 verbose stack     at ChildProcess.<anonymous> (D:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:24:14)
14 verbose stack     at emitTwo (events.js:87:13)
14 verbose stack     at ChildProcess.emit (events.js:172:7)
14 verbose stack     at maybeClose (internal/child_process.js:821:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
15 verbose pkgid screeps-typescript-starter@2.0.0
16 verbose cwd D:\GitHub\screeps-typescript-starter
17 error Windows_NT 10.0.14393
18 error argv "D:\\Program Files\\nodejs\\node.exe" "D:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "local"
19 error node v5.4.0
20 error npm  v3.3.12
21 error code ELIFECYCLE
22 error screeps-typescript-starter@2.0.0 local: `webpack --colors --env.ENV=local`
22 error Exit status 1
23 error Failed at the screeps-typescript-starter@2.0.0 local script 'webpack --colors --env.ENV=local'.
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 screeps-typescript-starter package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     webpack --colors --env.ENV=local
23 error You can get their info via:
23 error     npm owner ls screeps-typescript-starter
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
pathurscommented, Sep 14, 2017

Wasn’t a huge problem, however knowing that this is intended for “noobs”, then I figured someone in my situation without my knowledge could have been 10x more confused

1reaction
resir014commented, Sep 13, 2017

@pathurs Sorry about that! I did mention on the readme that “latest LTS version” of node is recommended, but I’ll admit it’s a little vague.

I’ll change it when I’m out of work to be more clearer. Technically you should be fine with anything above Node v6.0.0.

On Wed, 13 Sep 2017, 19:12 Pathurs notifications@github.com wrote:

Turns out I had to update NPM and Node to latest.

Perhaps consider requiring specific versions of these, and adding this to the FAQ, or mentioning it somewhere 😃

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/screepers/screeps-typescript-starter/issues/70#issuecomment-329148463, or mute the thread https://github.com/notifications/unsubscribe-auth/AFZshZUq2WCBESSeXn1486Bjmv73Vwukks5sh8bIgaJpZM4PV_z9 .

Read more comments on GitHub >

github_iconTop Results From Across the Web

error when trying to git clone and launch locally - Stack Overflow
i've cloned a few projects successfully, but am having trouble with the latest one...see below. i've done the following (and have repeated ...
Read more >
Cannot Clone the repository and install with npm #510 - GitHub
I have latest versions of node and npm installed and I was able to clone this GIT repo on my computer but as...
Read more >
Common errors | npm Docs
Possible temporary npm registry glitch, or corrupted local server cache. Run npm cache clean and/or try again later. · This can be caused...
Read more >
Start Contributing to Babylon.js
Now you have a local repository and a remote repository on Github. From the folder where you cloned Babylon.js into you can simply...
Read more >
How To Use Node.js Modules with npm and package.json
This tutorial uses version 18.3.0. To install this on macOS, follow the steps in How to Install Node.js and Create a Local Development ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found